Hello i am new here, and new to php too.
I try to learn php from about 20 days, and i am getting stuck in something, somebody asked me to make a program that will produce the following output, i have to use a nested for loop:
1
22
333
4444
55555
…etc
The code for is:
[code]for($a=1;$a<10;$a++)
{
echo “
”;
for ($b=0;$b<$a;$b++)
echo $a;
}[/code]
I do know this is something elementary, but really i cannot understand how it works is there any saint that will comment the code and explain step by step whats happening there?
Thank you.