On 05/16/2005 7:48 PM, IMEX Research <[EMAIL PROTECTED]> wrote:
> OK, I know this has probably gone aruond the list a few times, but how do I
> validate a phone number that is in the format ddd-ddd- ?? I can't figure
> out how.
I try to not restrict the way your users enter phone numbers or
IMEX Research wrote:
OK, I know this has probably gone aruond the list a few times, but how do I validate a phone number that is in the format ddd-ddd- ?? I can't figure out how.
preg_match ( "/^\d{3}-\d{3}-\d{4}$/", $phnumber )
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTE
> -Original Message-
> From: IMEX Research [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 17, 2005 2:49 AM
> To: php-general@lists.php.net
> Subject: [PHP] PHP Phone Number Validation
>
> OK, I know this has probably gone aruond the list a few times, but how
do
OK, I know this has probably gone aruond the list a few times, but how do I
validate a phone number that is in the format ddd-ddd- ?? I can't figure
out how.
Jeremy White
IMEX Research
Manager, Online Marketing
408-268-0800
1474 Camino Robles
San Jose, CA 95120
[EMAIL PROTECTED]
http://www
4 matches
Mail list logo