Guest User

Untitled

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