Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $comand = readline();
- function palidromNumbers($input){
- while(true){
- $a= strrev($input);
- if($input== $a){
- echo "true".PHP_EOL;
- }else{
- echo "false".PHP_EOL;
- }
- $input = readline();
- if($input == "End"){
- return;
- }
- }
- }
- echo palidromNumbers($comand);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement