Re: Profanity Filter

From: Date: Fri, 19 Jan 2001 20:47:05 +0000
Subject: Re: Profanity Filter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35720@lists.php.net to get a copy of this message
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 <ignacio@openservices.net>

« previous php.general (#35720) next »