Skip to content

Instantly share code, notes, and snippets.

@azulkipli
Created January 4, 2019 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azulkipli/471663109999506660996cbd354c44d5 to your computer and use it in GitHub Desktop.
Save azulkipli/471663109999506660996cbd354c44d5 to your computer and use it in GitHub Desktop.
JDS_PHP#1
<?php
class Palindrome
{
public static function isPalindrome($word)
{
$str = strtolower($word);
if ($str == strrev($str))
return TRUE;
else
return FALSE;
}
}
echo Palindrome::isPalindrome('Deleveled');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment