PHP examples - File Output, plaintext, csv, and json