+ 1

How can I make the Isosceles trapezoid with php?

like ********** ******** ****** $row=3; $columns=10; for($i=0;$i<$rows;$i++){ for$k=0;$k<=$i;$k+=2{ echo "&nbsp&nbsp"; } for($j=0;$j<$columns;$j++){ echo "*"; } echo "<br \>" } what wrong?

22nd Feb 2018, 4:09 AM
Sobigjj
1 Answer
0
I would advise you to draw the shape with client side javascript using canvas API since u are programming on the web, it will save u the trouble PHP wasn't made to do that
24th Feb 2018, 10:53 PM
the_code_genin
the_code_genin - avatar