01-03-2007, 05:55 AM
Tikitiki Wrote:See if you can make this script any small while still retaining the correctness of it. So far I have 255 bytesThis is what I currently have:
PHP Code:
$i=99;while($i>0){$e=$i>1?"s":"";$f=$i-1>1?"s":"";$b=" of beer";$w=" on the wall";$y=" bott
le";$k=$i-1;$j=$i==1?"Go to the store and buy some more, 99{$y}s$b":"Take one down and pas
s it around, $k$y$f$b";echo"$i$y$e$b$w, $i$y$e$b.<br>$j$w.<br><br>";$i--;}
PHP Code:
for($i=99;$i;$i--){$e=$i>1?"s":"";$f=$i-2?"s":"";$b=" of beer";$w=" on the wall";$y=" bottle";$k=$i-
1;$j=$i==1?"Go to the store and buy some more, 99{$y}s$b":"Take one down and pass it around,
$k$y$f$b";echo"$i$y$e$b$w, $i$y$e$b.<br>$j$w.<br><br>";}
judel Wrote:LOL...Did anyone ever see that movie "Pirahna"? Probably corny by today's standards, but it was pretty intense back in the day!
Nope...


