/ Published in: PHP
Expand |
Embed | Plain Text
function fnValidatePhone($mValue) { $sPattern = '/^[\(]?[0-9]{3}[\)]?[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/'; }
You need to login to post a comment.
Shifter on 07/12/09
1 person have marked this snippet as a favorite
function fnValidatePhone($mValue) { $sPattern = '/^[\(]?[0-9]{3}[\)]?[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/'; }
You need to login to post a comment.