Guest User

Untitled

a guest
Jan 21st, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. <?php
  2.  
  3. class Palindrome
  4. {
  5. public static function isPalindrome($word)
  6. {
  7. return (strtolower($word) === strtolower(strrev($word)));
  8. }
  9. }
  10.  
  11. echo Palindrome::isPalindrome('exe');
  12. echo Palindrome::isPalindrome('Ini');
Add Comment
Please, Sign In to add comment