If I understand correctly what you're trying to do, you could loop through the array, check each string value in the array with preg_match and break out of it if you find a match.
e.g.
e.g.
PHP Code:
$arr = array();//Add data into the array here
for ($i = 0; $i < count($arr); $i++) {
$tt = preg_match("[0-9]", $arr[$i]);
if ($tt == 1) {
break;
}
}
Comments
Post a Comment