*****
*****
*****
*****
*****

<?php 
for ($i=1; $i <=5 ; $i++) { 
# code.e..

for($j=0;$j <5; $j++){
  echo "*";
  }

echo "<br>";
}
?>

This php script is used to print the above pattern it will like one box. in this output we will used the for loop.
  This code we used two different for loop .one loop is start form  1  and go to 5 all time it will increment.
  Second loop is call inside the main loop it will also start with 0 and goes to 5  after we print the inside loop * only .
   last we used to break the link using "<br>"

Thanks
Vips the dev

Comments

Popular posts from this blog

Write Below Pattern Using for loop Coding & Print Pattern in Php.