What is the best way to check if string is Palindrome in PHP?
function isPal($word)
{
$temp = strtolower(preg_replace("/[^A-Za-z0-9 ]/", '', $word));
if(strrev($temp)==$temp)
return TRUE;
else
return FALSE;
}