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
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 '|'.
also if we read that file can the 'column' go in an array like perl
i.e if we have a rec
[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
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 '|'.
also if we read that file can the 'column' go in an array like perl
i.e if we have a rec
4 matches
Mail list logo