一個(gè) PHP 數(shù)組,包含日期、數(shù)字、數(shù)字、數(shù)字、數(shù)字、數(shù)字、日期、數(shù)字、數(shù)字、數(shù)字等項(xiàng)目...但都在編號(hào)數(shù)組中作為單獨(dú)的項(xiàng)目我需要的是獲取這個(gè)數(shù)組并能夠處理大型數(shù)據(jù)集并實(shí)際分配變量,以便我可以將它們放入數(shù)據(jù)庫中日期 Number1 Number2 Number3 Number401/01/2001。01. 02. 03. 04到目前為止,我能夠打開文件,并將數(shù)字拉入一個(gè)數(shù)組,但僅此而已。<?php $lines=array();$fp=fopen('numbers.txt', 'r');while (!feof($fp)){ $line=fgets($fp); //process line ? $line=trim($line); //add to array $lines[]=$line;}fclose($fp);print_r($lines);?>您建議我至少以所需格式顯示數(shù)組中的項(xiàng)目。理想情況下,我想將它們放入數(shù)據(jù)庫中,以便我可以運(yùn)行分析。非常感謝任何幫助。
- 1 回答
- 0 關(guān)注
- 140 瀏覽
添加回答
舉報(bào)
0/150
提交
取消