Guest User

Untitled

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