Other than substr
| From: | César Aracena | Date: | Wed, 03 Jul 2002 16:35:36 +0000 |
| Subject: | Other than substr | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105240@lists.php.net to get a copy of this message | ||
Hi all.
I need to show up some data from a DB which consist of phone numbers
with area code. Theyre stored like (xxxx) xxxxxxxx. What is the best
approach to print them into some textboxes so they can be edited? Im
using substr but area codes (inside parenthesis) goes from 3 to 5
numbers, so sometimes the closing parenthesis is showed and other times
even the first number from the actual number is also showed. Can I use
regex instead? How is it used? I tried to figure it out in the PHP
manual, but it is NOT written in my level of English.
Thanks in advance,
<mailto:webmaster@icaam.com.ar> Cesar Aracena
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621