convert string (from text file) to array
Posted: Thu Oct 09, 2003 6:36 am
hi guys..wassup. my question is pretty basic but important 4 me.
i have a text file let say "a.txt" whic contains:-
*****************************************
їїa,b,c,d,ї1,2,3,4,5],їa,b,c,d,ї1,2,3,4,5]]]
*****************************************
the content is a 2 dimentional array..but of course i have to read it as a string. my question is can i turn this back as an array..
this is my code:
їcode]
$content = settype(file("a.txt"),"array");
ї/code]
but it seems not right..i tried to look everywhere on internet but no luck. if anyone can help me..it'll be great. thank guys
i have a text file let say "a.txt" whic contains:-
*****************************************
їїa,b,c,d,ї1,2,3,4,5],їa,b,c,d,ї1,2,3,4,5]]]
*****************************************
the content is a 2 dimentional array..but of course i have to read it as a string. my question is can i turn this back as an array..
this is my code:
їcode]
$content = settype(file("a.txt"),"array");
ї/code]
but it seems not right..i tried to look everywhere on internet but no luck. if anyone can help me..it'll be great. thank guys