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]
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Sterling Hughes
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Sterling Hughes
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Sterling Hughes
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Sterling Hughes
- Re: [PHP] Profanity Filter Sterling Hughes
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Alex Black
- [PHP] CF vs PHP for Creating ... DPG Account
- Re: [PHP] CF vs PHP for Creat... Michael Kimsal
- Re: [PHP] Profanity Filter Egan
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- RE: [PHP] Profanity Filter DanO
- RE: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Sterling Hughes
- Re: [PHP] Profanity Filter Stephan Ahonen