Posted by John Nichel on 05/17/05 16:18
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-dddd ?? I can't figure out how.
preg_match ( "/^\d{3}-\d{3}-\d{4}$/", $phnumber )
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com
Navigation:
[Reply to this message]
|