Guest User

Untitled

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