RE: [PHP] including parenthesis, space and dashes in a phone number

2007-12-02 Thread Daevid Vincent
:[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

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-12-02 Thread Daevid Vincent
> -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,

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Warren Vail
> > 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

Re: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Jochem Maas
[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

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Warren Vail
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

Re: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Jochem Maas
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

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Warren Vail
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

Re: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread afan pasalic
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 =

RE: [PHP] including parenthesis, space and dashes in a phone number

2007-11-30 Thread Daevid Vincent
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