Advertisement
Guest User

09. Palindrome Integers

a guest
Feb 20th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. $comand = readline();
  4.  
  5. function palidromNumbers($input){
  6.  
  7. while(true){
  8.  
  9. $a= strrev($input);
  10. if($input== $a){
  11. echo "true".PHP_EOL;
  12. }else{
  13. echo "false".PHP_EOL;
  14. }
  15.  
  16. $input = readline();
  17. if($input == "End"){
  18. return;
  19. }
  20. }
  21. }
  22.  
  23. echo palidromNumbers($comand);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement