Re: Regex in PHP

From: Date: Wed, 04 Jun 2008 16:10:30 +0000
Subject: Re: Regex in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-275016@lists.php.net to get a copy of this message
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 | +----------------------------------------+

« previous php.general (#275016) next »