I haven't worked that much with csv export, and now I have a problem. I have something like this:
['client']=>
['name']=>'John',
['surname']=>'Doe',
['things']=>
[0]=>'jacket',
[1]=>'shoes',
[2]=>'hat'
And when I parse ti for csv I get
name | surname | things
John | Doe | jacket, shoes, hat
And I would like to get
name | surname | things
John | Doe | jacket
shoes
hat
Is there a way to do it in PHP?
EDIT: I tried this:
$client['things'] = ",".implode(",", $client['things']);
I tried this also
$client['things'] = ",".implode("
", $client['things']);
and this
$client['things'] = ",".implode("", $client['things']);
and it didn't worked properly.