Re: [PHP] Regex in PHP
- Date: Wed, 04 Jun 2008 17:10:30 +0100
- From: Richard Heyes <richardh@xxxxxxxxxxx>
- Subject: Re: [PHP] Regex in PHP
Hi,
and the case insensitive versions are a hair faster still ;)
Are they? I always thought that case-sensitive functions were faster
because they have to test fewer comparisons. Eg To test if i == I in a
case-insensitive fashion requires two comparisons (i == I and i == i)
whereas a case-sensitive comparison requires only one (i == i).
Cheers.
--
Richard Heyes
+----------------------------------------+
| Access SSH with a Windows mapped drive |
| http://www.phpguru.org/sftpdrive |
+----------------------------------------+
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php