Skip to main content

check word palindrom or not

this method for check word has palindrom or no

use Nagara\Src\Str\StringMagic;

$str = new StringMagic;
$str->isPalindrom("kasur"); // return bukan palindrom
echo "<br>";
$str->isPalindrom("katak"); // return palindrom