View Single Post
Old 09-16-2012, 06:29 PM   PM User | #1
Gokhan137
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Gokhan137 is an unknown quantity at this point
Exclamation Explode .txt file into multidimensional array.

Currently I have a file that looks something like this:

Code:
Awesomedude123 = 399,408 = September 16, 2012:
Username11 = 1,914,144 = September 16, 2012:
EpicSurfer = 1,031,427 = September 16, 2012:
What I want to do is transform it into a multidimensional array with PHP so it looks something like this:

Code:
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
        )

)
I have tried several PHP scripts, but none of them worked for me. Any help would be HIGHLY appreciated!
Gokhan137 is offline   Reply With Quote