How do I print a sequence of letters with PHP, without using 'for'? It needs to be something like this:
I have a code like this:
<?php $a = 'a'; $n = 50; $i = 0; $k = 0; while ( $i < $n ) { echo $a." ".'<p></p>'; for ($k =0; $k<=$i; $k++) { echo $a." "; } $i++; } ?> But I don't need 'for', maybe something with 'while', 'if' or 'foreach'. Ideas?
