Merlin wrote:
Hi,
I am trying to validate international phone numbers before adding into
a db.
After a bit of research I came up with this regex:
return (ereg('^[0-9]{1,3}\.[0-9]{1,6}\.[0-9]{1,8}$', $phone));
However, this tightens the numbers to something like this:
409.711.933838
Thats a pro
> -Original Message-
> From: Merlin [mailto:[EMAIL PROTECTED]
> Sent: 02 November 2004 10:49
> To: [EMAIL PROTECTED]
> Subject: [PHP] validate international phone numbers
>
>
> Hi,
>
> I am trying to validate international phone numbers before adding
> into a db.
> After a bit of research I
On Tuesday 02 November 2004 10:49, Merlin wrote:
> I am trying to validate international phone numbers before adding into a
> db. After a bit of research I came up with this regex:
>
> return (ereg('^[0-9]{1,3}\.[0-9]{1,6}\.[0-9]{1,8}$', $phone));
> However, this tightens the numbers to something
3 matches
Mail list logo