$filename = 'itunes_report.txt';
$f = fopen($filename, 'r');
$db = array();
$dbSize = 0;
$var = file($filename);
$mydata = trim($var[1]);
$temp = explode(" ", $mydata);
print_r($temp);
我使用此代码从文件中读取数据。我从文本文件中取了第一行。这是行
APPLE US ebookReaderipad EC Media (International) Pvt. ltd BooksOnwink 1.3 1F 1 0 07/30/2012 08/05/2012 GBP GBP 425105344 0
我用空格分解这条线。然后输出中缺少一些空格。输出
数组 ( [0] => APPLE US ebookReaderipad EC [1] => 媒体 [2] => (国际) [3] => Pvt. [4] => ltd BooksOnwink 1.3 1F 1 0 07/30/2012 08/ 05/2012 GBP GBP 425105344 0 )