J jtorii4 New member Oct 3, 2009 #1 I want the output to be 1 12 123 1234 12345 ...and so on depending on the number of lines the user asks for all in .php format. PLEASE HELP. I know you have to use a for loop but how?
I want the output to be 1 12 123 1234 12345 ...and so on depending on the number of lines the user asks for all in .php format. PLEASE HELP. I know you have to use a for loop but how?
C Chris New member Oct 3, 2009 #2 for($i=0;$i<$lines;$i++){ for($j=1;$j<$i;$j++){ echo $j; } echo "<br>"; }