目前我有一個看起來是這樣的文件:爆炸.txt文件到多維數組
Awesomedude123 = 399,408 = September 16, 2012:
Username11 = 1,914,144 = September 16, 2012:
EpicSurfer = 1,031,427 = September 16, 2012:
我想要做的就是它改造成用PHP多維數組,所以它看起來是這樣的:
Array
(
[1] => Array
(
[0] => Awesomedude123
[1] => 399,408
[2] => September 16, 2012
)
[2] => Array
(
[0] => Username11
[1] => 1,914,144
[2] => September 16, 2012
)
[3] => Array
(
[0] => EpicSurfer
[1] => 1,031,427
[2] => September 16, 2012
)
)
我試過使用array_shift,但它沒有解決。任何幫助將高度讚賞!
發佈您的代碼,你試過嗎? –