i am using the following code to detect if a string is a phone number...
<?php
$text = "[email protected]" ;
if (preg_match_all('/\+?[0-9][0-9()-\s+]{4,20}[0-9]/',$text)){
echo "phone number";
}else{
echo "not a phone number";
}
?>
the problem is that i get phone number where as i should be getting not a phone number... how can i solve this problem... any help would be appreciated.
