It looks like you're new here. If you want to get involved, click one of these buttons!
I need to create a CSV file dynamically in my PHP app. Is it possible without using a library?
This is a good answer.
Check this out. Can create CSV, XLS, XLSX ...