html5andphp: Arrow in php

Monday, 24 June 2013

Arrow in php

                                        
                

                                    Making  Arrow Using Php





arrow



Html code

The given arrow pattern is made from loop .There are many for loop used to create this type of pattern.
That is nested loop . 
<!doctype html>
<html>
<head></head>
<body>
uk
<?php
for ( $b =1;$b<=9;$b++ )
{
 for ($c=1;$c<=$b;$c++)
   {
   echo"$c";
   }
echo"<br>";
 }

 for ($a=9 ;$a>=1;$a-- )
{
 for ($d=1;$d<=$a;$d++)
   {
   echo"$d";
   }
echo"<br>";
 }
?>
</body>
</html>
umar

uk

"; } for ($a=9 ;$a>=1;$a-- ) { for ($d=1;$d<=$a;$d++) { echo"$d"; } echo"
"; } ?>

1 comment:

Anonymous said...

gdgdf