checking phone number
| From: | afan | Date: | Wed, 20 Dec 2000 23:40:03 +0000 |
| Subject: | checking phone number | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4560@lists.php.net to get a copy of this message | ||
Hi all,
First I want to wish to everybody Happy holydays!
I have to check does submitted phone number already exist in database. I just wrote this:
$CheckPhone = ereg_replace("\.", "", $Phone);
$CheckPhone = ereg_replace(" ", "", $CheckPhone);
$CheckPhone = ereg_replace("\(", "", $CheckPhone);
$CheckPhone = ereg_replace("\)", "", $CheckPhone);
$CheckPhone = ereg_replace("\-", "", $CheckPhone);
$CheckPhone = ereg_replace("\/", "", $CheckPhone);
and it works fine!
But, probably there is something simpler, better and shorter. Anybody have an idea?
Afan