function check_for_number($str) { $i = strlen($str); while ($i--) { if (is_numeric($str[$i])) return true; } return false; }
PHP Проверка на содержание цифр в строке
PHP
01-06-2016
01-06-2016
function check_for_number($str) { $i = strlen($str); while ($i--) { if (is_numeric($str[$i])) return true; } return false; }