Re: [PHP] Regex for telephone numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Fri, Dec 31, 2010 at 12:05, Dmitriy Ugnichenko
<mitya.ugnichenko@xxxxxxxxx> wrote:
> I guess, this will work fine
> ereg('[0-9]{3}-[0-9]{3}-[0-9]{4}',  $phone_number);

    Not quite.  Plus, all ereg* functions have been deprecated for
some time now.

</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams

PHP Database Mailing List (
To unsubscribe, visit:

[PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Plagiarism Notes]     [Postgresql]     [Yosemite News]

Powered by Linux