I am trying to export certain data from my PHP form to CSV. I can echo out to screen during testing and I can also export to CSV the static test data (stored in the $contents array) you see below. But I am stuck trying to export the certain fields that I only need to export.
This is my code
// How do I get this info into the CSV?
/*foreach ( $entries as $entry ) :
$csv_headers = [
'Registered Charity Number',
$contents = [
[2014, 6, '1st half', 'firstname.lastname@example.org', 0, 0],
[2014, 6, '1st half', 'email@example.com', 0, 0],
[2014, 6, '1st half', 'firstname.lastname@example.org', 0, 0],
[2014, 6, '1st half', 'tim', 0, 0]
foreach ( $contents as $content) :