My code contains this:
$hphone = eregi_replace("(", "", $hphone);
The error is:
Warning: REG_EPAREN in /home/higherme/highermedia-www/mark/addressbook/formout.php3 on line 18
I'm trying to turn a formated number:
(555) 123-4567
into
5551234567
and here is my code:
$hphone = eregi_replace("(", "", $hphone);
$hphone = eregi_replace(")", "", $hphone);
$hphone = eregi_replace("-", "", $hphone);
$hphone = eregi_replace(" ", "", $hphone);
regardless of the error, there must be a better way get the numeric value out of string like that.
any ideas?