<?PHP $str="The best time is no time at that time"; echo strrev($str); //emit taht ta emit on si emit tseb ehT ?>
<?PHP $str="PHP"; if ($str == strrev($str)) echo "String is symmetrical"; else echo "String is asymmetrical"; //String is symmetrical ?>