Re: [PHP] file delimited

2003-11-24 Thread Justin French
On Sunday, November 23, 2003, at 10:50 PM, tony wrote: Hi, I'm new to php I just come from perl, and I wanted to know like perl if we can open a file and read delimited line just like the cvs function, but I don't want comma separated, i want the vertical bar '|'. You can do this with http://w

RE: [PHP] file delimited

2003-11-24 Thread Jay Blanchard
[snip] i want the vertical bar '|'. [/snip] http://www.php.net/explode $theLine = fgets($theFile, 1024); $arrayLine = explode("|", $theLine); Now each item from the line is in $arrayLine[0] $arrayLine[n] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph