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