:[EMAIL PROTECTED]
> Sent: Friday, November 30, 2007 12:03 PM
> To: Daevid Vincent
> Cc: 'php-general'
> Subject: Re: [PHP] including parenthesis, space and dashes in
> a phone number
>
> It's ok to store it this way, but it could be a little PITA
> when
> -Original Message-
> From: Warren Vail [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 30, 2007 2:17 PM
> To: 'Jochem Maas'
> Cc: 'afan pasalic'; 'Daevid Vincent'; 'php-general'
> Subject: RE: [PHP] including parenthesis,
>
> quite, quite, I was just jesting :-)
>
Oh good, I'll call back the troups,,
Warren
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[mailto:[EMAIL PROTECTED]
>> Sent: Friday, November 30, 2007 1:57 PM
>> To: Warren Vail
>> Cc: 'afan pasalic'; 'Daevid Vincent'; 'php-general'
>> Subject: Re: [PHP] including parenthesis, space and dashes in a phone
>> number
>>
>> W
ic'; 'Daevid Vincent'; 'php-general'
> Subject: Re: [PHP] including parenthesis, space and dashes in a phone
> number
>
> Warren Vail wrote:
> > Not to mention that syntax works in the US, but not large portions of
> the
> > rest of the world. (ev
gt; Cc: 'php-general'
>> Subject: Re: [PHP] including parenthesis, space and dashes in a phone
>> number
>>
>> It's ok to store it this way, but it could be a little PITA when search.
>> E.g., you store (123) 456-7890 and somebody search for 123-456-7890?
&g
Vincent
> Cc: 'php-general'
> Subject: Re: [PHP] including parenthesis, space and dashes in a phone
> number
>
> It's ok to store it this way, but it could be a little PITA when search.
> E.g., you store (123) 456-7890 and somebody search for 123-456-7890?
> R
It's ok to store it this way, but it could be a little PITA when search.
E.g., you store (123) 456-7890 and somebody search for 123-456-7890? Right?
-afan
Daevid Vincent wrote:
> The kind of opposite of this, is what I use, in that it ADDs the () and -
>
> if ((strlen($phone)) <= 14) $phone =
The kind of opposite of this, is what I use, in that it ADDs the () and -
if ((strlen($phone)) <= 14) $phone =
preg_replace("/[^0-9]*([0-9]{3})[^0-9]*([0-9]{3})[^0-9]*([0-9]{4}).*/",
"(\\1) \\2-\\3", $phone);
> -Original Message-
> From: afan pasalic [mailto:[EMAIL PRO
9 matches
Mail list logo