Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $input = readline();
- $newInput = strrev($input);
- function is_palindrome($a , $b):bool{
- if ($a === $b){
- return True;
- }
- return False;
- }
- echo is_palindrome($input, $newInput);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement