This is how I would do it:
$lower = true; //if you want lowercase letters
$t = 4;
$s = 1;
while( $s <= $t ) {
$i = ( $lower ? 97 : 65 );
while( $i <= ( $lower ? 122 : 90 ) ) {
echo str_repeat( chr( $i ),$s ) . '<br />';
$i++;
}
$s++;
}
That what you are talking about?
Last edited by kkeith29; Sep 2nd, 2009 at 2:00 am.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
Offline 1,315 posts
since Jun 2007