I have a web app that builds an associative array of responses from a user as they take a survey. When completed, I want to allow them to press a button, and have their responses download to their browser as a plist.

Using `file_put_contents`, I am able to write the array to disk and then downloading it from there is pretty easy. I am wondering if it is possible to output the plist file without writing it to disk first? It seems like a lot of overhead and cleanup will be required if I am writing to disk every time.

Can I just take the array and output to a select filename and extension?

Thanks