RE: [PHP] How do I do this PERL in PHP?
| From: | SLanger at spirit21 dot de | Date: | Wed, 17 Sep 2003 06:44:04 +0000 |
| Subject: | RE: [PHP] How do I do this PERL in PHP? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162827@lists.php.net to get a copy of this message | ||
hello
just a side note
instead of
> ereg( '^<$var>(.*)$', $line, $matches )
use
preg_match('/^<'.$var.'>(.*)$/', $line, $matches)
since it is faster than ereg.
Regards
Stefan Langer