0

I need this following output in php in for loop

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

6th Dec 2017, 8:08 PM
hassan
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>"; }
6th Dec 2017, 8:11 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 1
ok thnx i followed that code
6th Dec 2017, 8:37 PM
hassan
0
thank u so much it works for me
6th Dec 2017, 8:28 PM
hassan
0
is it posdible j can b greater than i coz j will start from 5 4 3 2 1
6th Dec 2017, 8:29 PM
hassan
0
GAWEN STEASY has already given you the code that implement this pattern with php
6th Dec 2017, 8:34 PM
MONSIEUR GNETO
MONSIEUR GNETO - avatar
- 1
very simple
6th Dec 2017, 8:19 PM
MONSIEUR GNETO
MONSIEUR GNETO - avatar