25 lines
198 B
PHP
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,);
|
|
|
|
|
|
|
|
?>
|