RE: [PHP] IF statement question...
| From: | Jay Blanchard | Date: | Wed, 19 May 2004 12:28:55 +0000 |
| Subject: | RE: [PHP] IF statement question... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186528@lists.php.net to get a copy of this message | ||
[snip]
Tipp: Do not use preg_match() if you only want to check if one string
is contained in another string. Use strpos() or strstr() instead as they
will be faster.
[/snip]
This brings up a good point. Just exactly how much faster would one be
over another in this small example? How big would the string have to be
to note any degredation of performance?