Advertisement
Guest User

Untitled

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