我已经提取了一个csv报告,现在我已经在一个字符串中。有csv输出为字符串,必须解析为数组php
eg ->
$report="date,pageview,clicks
2012-07-01,229316,16739
2012-07-02,295238,19582
2012-07-03,278505,17805
2012-07-04,209455,15146
2012-07-05,250756,17206";
现在我想保存在MySQL数据库这个数据,但没有得到任何优化的解决方案,因为我真正的$report
是非常大的规模。
你是如何取字串的?当你用['fgetcsv()'](http://php.net/manual/en/function.fgetcsv.php) – DaveRandom 2012-07-09 08:50:39