Re: Phone number validation
| From: | Curt Zirzow | Date: | Sun, 12 Mar 2006 21:21:22 +0000 |
| Subject: | Re: Phone number validation | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231813@lists.php.net to get a copy of this message | ||
On Sun, Mar 12, 2006 at 01:48:28PM -0700, Paul Goepfert wrote:
> On 3/12/06, Curt Zirzow <czirzow@gmail.com> wrote:
> >
> > With US phone numbers I always use this approach to avoid what
> > format people use to enter the phone:
> >
>
> > - Remove any non digit $check_phone =
> > preg_replace('/[^0-9]/', '', $phone);
>
> I just want to be sure about something. Is there a second
> quotation mark missing? I only count one and I added a space
> between the quotes.
I'm not sure what you're seeing but the line reads like this:
http://pastebin.com/598522
Curt.
--
cat .signature: No such file or directory