<?php
$str="The quick brown fox jumped over the lazy dog.";
$str_convert='';
$count=strlen($str);
for($i=$count;$i>=0;$i--)
{
$str_convert.=$str[$i];
}
echo "Now <font color='blue'>$str</font> is <font color='red'>$str_convert</font>"."<br>";
$str_convert_split=wordwrap($str_convert,3,"<br>");
echo "After wrap str:"."<br>";
print_r($str_convert_split);
?>