Can I use Zend_Translate to convert a data array into a csv file?
Asked
Active
Viewed 956 times
0
-
Why would you use Zend_Translate? A little more backstory would go a long way to more specific answers... – Mike Purcell Nov 04 '11 at 17:45
-
maybe zend translate is not the best tool? on my searches it looks like it can handle CSV's – Robbo_UK Nov 07 '11 at 17:33
-
Ahhh gotcha. Post some code snippets and we can better help you. – Mike Purcell Nov 07 '11 at 17:52
2 Answers
1
You can do that with plain php.
Implode the array and echo it out in csv format.

Naftali
- 144,921
- 39
- 244
- 303
-
yeah but you need to escape comma's and quotes etc. I thought there would be a package on the framework that would help with this – Robbo_UK Nov 05 '11 at 17:20
-
-
what if you have the following $data = array(); $data[] = 'this text'; $data[] = text , more $data[] = text , mo more,and more you would need When you implode this array you would need to escape the comma's inside each data item – Robbo_UK Nov 07 '11 at 17:27
0
found this... how to import CSV using zend
looks like zend translate is not the best option for what I was trying to do