0
I need this following output in php in for loop
***** **** *** ** *
6 Answers
+ 8
just do like this you can get the following pattern
for($i=1;$i<=5;$i++)//this is used for number of rows
{
  for($j=5;$j>=$i;$j--)//this is used for * in per row
  {
    echo "*";
  }
  echo "<br>";
}
+ 1
ok thnx i followed that code
0
thank u so much it works for me
0
is it posdible j can b greater than i
coz j will start from 5 4 3 2 1
0
GAWEN STEASY has already given you the code that implement this pattern with php
- 1
very simple