Does anyone know of a function, or a cool trick, to get the return value of fputcsv instead of writing the output to file?
I’m trying to encode a file as a tab-delimited file, but my client wants one of the columns encoded in csv (so 1 column of csv values in a tab delimited file). Not ideal, I agree, but at this point I just need to get it done.
Thanks!
Shamelessly copying from a user note on the documentation page:
All of this should look familiar, except maybe
php://temp.