Hello all,
Can anyone tell me if I can read a file into an array with the file() function as key and value??
Let me demonstrate:
My file looks something like this:
Now I want it to be read as:Code:test1|test2 test3|test4 test4|test5
Instead of:Code:$f['test1'] = test2 $f['test3'] = test4 $f['test5'] = test6
Any ideas??Code:$f[0] = test1|test2 $f[2] = test3|test4 $f[3] = test5|test6



Reply With Quote


Bookmarks