RE: [PHP] Eregi filtering..

From: Date: Tue, 08 Jul 2003 00:19:49 +0000
Subject: RE: [PHP] Eregi filtering..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154280@lists.php.net to get a copy of this message
Here is one of doing this: if(strrpos($v_tel_filter,' ') > 0 || strspn($v_tel_filter, "0123456789-") != strlen($v_tel_filter)){ echo "'$v_tel_filter' Telephone Number Contains words"; } else { .... } -----Original Message----- From: Miranda, Joel Louie M [mailto:jmiranda@pd.state.gov] Sent: Monday, July 07, 2003 5:10 PM To: 'php-general@lists.php.net' Subject: [PHP] Eregi filtering.. elseif (eregi("a-ZA-9", $v_tel_filter)) { echo "'$v_tel_filter' Telephone Number Contains words"; } else { im looking how to verify numbers alone and dash "-" can that be possible? I have tried using "a-ZA-9" but did not work. any ideas? thanks, louie -- Thank you, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#154280) next »