Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hello = "Hello World";
- $len = strlen($hello);
- $a=$len;
- for($c=$len; $c>=0; $c--){
- for($d=$c; $d<$len; $d++){
- echo $hello[$d];
- }
- for($b=$len; $b>$a; $b--){
- echo $hello[$b-1];
- }
- echo "\n";
- $a--;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement