ereg_replace("[^0-9]", "", $var)
Kirk
> -Original Message-
> From: Craig Simon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 10:44 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] NEWBIE - How do you strip spaces?
>
>
> I
I am trying to figure out how to take a phone number as an array element,
and strip out the spaces and parenthesis and just return the numerals. IE
(555) 555-1212 to 551212.
I would appreciate any assistance.
Thanks
Craig
Craig Simon Senior Systems Engineer
M
2 matches
Mail list logo