$string = "999-999-9999";
$string = preg_replace("/\D/", "", $string);
--
Jack Timmons
@_Codeacula
> --
> This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.
>
> For information or project assistance please visit :
> http://www.360psg.com
>
> You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
> To post to this group, send email to Professi...@googlegroups.com
> To unsubscribe from this group, send email to Professional-P...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/Professional-PHP
That's what I based my answer off of.
If OP's trying to validate the ring-a-ling number, well, that'll take
a bit more than I have up my t-shirt sleeves.
--
Jack Timmons
@_Codeacula
Cheers!