Skip to content

Instantly share code, notes, and snippets.

@dikiwidia
Created May 14, 2019 16:19
Show Gist options
  • Save dikiwidia/7d3f7998967a4d53f0443a910d11f1ba to your computer and use it in GitHub Desktop.
Save dikiwidia/7d3f7998967a4d53f0443a910d11f1ba to your computer and use it in GitHub Desktop.
<?php
class Palindrome
{
public static function isPalindrome($word)
{
$wd = strtolower($word);
if ($wd == strrev($wd)){
return true;
}
return false;
}
}
echo Palindrome::isPalindrome('Deleveled');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment