/ Published in: PHP
Return a pure 10-digit phone number if the number given is 10 digits or 11 digits.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function is_phone($phone) { if($num_digits == 10 || $num_digits == 11) { return $phone; } else { return FALSE; } }