RE: [PHP] Checking for characters in string

From: Date: Fri, 04 Jan 2002 10:46:41 +0000
Subject: RE: [PHP] Checking for characters in string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79443@lists.php.net to get a copy of this message
>> Whats the most compact way to do this? substr? ereg? I think regular expressions is the best way because working with strings looks like this: if ($strtolower($pass)!=$pass) && ($strtoupper($pass)!=$pass) { echo "OK!"; } else { echo "WRONG!"; } but using reg expr it's even more shorter

« previous php.general (#79443) next »