Re: reading last -n lines array is emty
| From: | 1LT John W. Holmes | Date: | Thu, 06 Mar 2003 21:06:06 +0000 |
| Subject: | Re: reading last -n lines array is emty | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138530@lists.php.net to get a copy of this message | ||
> 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...