これらの手順が理解できません。
function Palindrome($str) {
if ((strlen($str) == 1) || (strlen($str) == 0)) {
echo " THIS IS PALINDROME";
}
else {
if (substr($str,0,1) == substr($str,(strlen($str) - 1),1)) {
return Palindrome(substr($str,1,strlen($str) -2));
}
else { echo " THIS IS NOT A PALINDROME"; }
}
}
Palindrome("456");