SHARE
TWEET

Untitled

a guest Jan 24th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top