if ($a == $i && $b == $h && $c == $g && $d == $f) #Final configuration to tell if it is a palindrome { print "PALINDROME!"; } else { print "NOT A PALINDROME!"; }