99999999) { $answer = 'E'; } } echo $answer . PHP_EOL; } function test($num) { while (true) { $num /= 10; if ($num % 10 != 0) { break; } } return ($num >= 1 && $num <= 9); }