Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.10, Sun Nov 30 23:48:25 2008 UTC | revision 1.11, Mon Dec 1 00:00:19 2008 UTC | |
|---|---|---|
| # | Line 19 function valid_es_phone_number($phonenum | Line 19 function valid_es_phone_number($phonenum |
| 19 | \d{3} # second group | \d{3} # second group |
| 20 | \D* # optional separator | \D* # optional separator |
| 21 | \d{3} # third group | \d{3} # third group |
| 22 | \D* # ignore trailing non-digits | \D* # ignore trailing non-digits |
| 23 | $/x"; | $/x"; |
| 24 | // return true if valid, false otherwise | // return true if valid, false otherwise |
| 25 | return (bool) preg_match($regex, $phonenumber); | return (bool) preg_match($regex, $phonenumber); |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |