On Fri, 19 Jan 2001, Sterling Hughes wrote:

> true it does take em away, that's why I suggest preg_match as the optimal
> choice...  I happen to strongly dislike the strpos() function when used for
> more than:
>
> strpos($str, ":");
>
> ie, one character searches...
>
> -Sterling
>

Huh? Whu? Okay, now I'm confused. What do you mean by "take em away"?

BTW, I dug through the PHP source, and strpos() with any length search is as
efficient as the underlying system's memcmp() implementation. It doesn't do
any special cases for single-character searches.

-- 
Ignacio Vazquez-Abrams  <[EMAIL PROTECTED]>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to