You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
|
|
// reverSe String Program
|
|
|
|
$a="Hello World. ";
|
|
|
|
|
|
|
|
$b=strlen($a);
|
|
|
|
for($i=($b-1);$i>=$a;$i--)
|
|
|
|
{
|
|
|
|
$c[]=$a[$i];
|
|
|
|
|
|
|
|
}
|
|
|
|
echo implode($c,);
|
|
|
|
|
|
|
|
?>
|