programming-examples/php/_Basics/Reverse String Program in PHP.php
2019-11-15 12:59:38 +01:00

25 lines
198 B
PHP

<?php
// reverSe String Program
$a="Hello World. ";
$b=strlen($a);
for($i=($b-1);$i>=$a;$i--)
{
$c[]=$a[$i];
}
echo implode($c,);
?>