Re: Phone number validation

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

 



I didn't realize that those were single quotes.  I printed out the
email message and it looked like one set of double quotes for the
second parameter rather the two single quotes.

Is it possible for anyone to tell me what php method is used to grab
the first charater of a string?  And onece I have it what method
removes the characted or number?

I know this seems trivial but I am still new to php and I don't have a
good understanding of the language yet.  The more I do the better I'll
get.

Thanks
Paul

On 3/12/06, Curt Zirzow <czirzow@xxxxxxxxx> wrote:
> On Sun, Mar 12, 2006 at 01:48:28PM -0700, Paul Goepfert wrote:
> > On 3/12/06, Curt Zirzow <czirzow@xxxxxxxxx> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux