1から100まで10行*10行の表
http://www.ganchiku.com/2006/09/jinriki_hatena_php.html から。
面白そうだったので、考えてみました。
<?php echo "<table>\n"; $x = 0; while ( ++$x < 11 ) { echo "<tr><td>" . implode( "</td><td>", range( 10 * $x - 9, 10 * $x ) ) . "</td></tr>\n"; } echo "</table>\n"; ?>
ワンライナーにすると以下のような感じでしょうか。table タグは入れていません。
php -r '$x=0; while(++$x<11) echo "<tr><td>" . implode("</td><td>", range(10*$x-9, 10*$x)) . "</td></tr>\n";'