/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function fnValidatePhone($mValue) { $sPattern = '/^[\(]?[0-9]{3}[\)]?[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/'; }
function fnValidatePhone($mValue) { $sPattern = '/^[\(]?[0-9]{3}[\)]?[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/'; }