----- Original Message -----
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>; "WebDev" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 2:06 PM
Subject: Re: [PHP] reading last -n lines array is emty
> > Holy crap looks like I was wrong! I just tested it and sure enough '|'
> does
> > return an error.. how do you like that. So use split("\|", $file[$i]).
>
> For a regular expression "|" means OR. You could use
explode("|",$file[$i])
> for the sam effect. Benchmark split() vs. explode() and see which is
> faster...
>
> ---John Holmes...
Indeed. My mistake was in assuming that split() parses the parameter as
string rather than an expression.
- Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php