Our teacher in PHP is asking us to create a program where we would print a pyramid like figure, but what I'm really confused about is how do I print those asterisk by using loop or for. the other thing is how do i generate new size, by new size I mean for example:
the first figure would be 5x5, then if i refresh a page it would generate a new size like 11x11 or 7x7
if anyone would be be able to answer my question, i would be grateful.