Question: Write PHP for a page that generates this output using loops (not just a bunch of echos): * 1 stars **2 stars 3 stars 4

Write PHP for a page that generates this output using loops (not just a bunch of echos): * 1 stars **2 stars 3 stars 4 stars * 5 stars *6 stars ** 7 stars 8 stars 9 stars ***10 stars It will take two (nested) loops to solve this task, one to output the lines and one to output the stars
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
