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.
25 lines
198 B
PHTML
25 lines
198 B
PHTML
5 years ago
|
<?php
|
||
|
|
||
|
// reverSe String Program
|
||
|
|
||
|
$a="Hello World. ";
|
||
|
|
||
|
|
||
|
|
||
|
$b=strlen($a);
|
||
|
|
||
|
for($i=($b-1);$i>=$a;$i--)
|
||
|
|
||
|
{
|
||
|
|
||
|
$c[]=$a[$i];
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
echo implode($c,);
|
||
|
|
||
|
|
||
|
|
||
|
?>
|