I love code jokes
function Song( $bottles = 99 )
{
$lyrics = "";
while( $bottles >= 1 )
{
$lyrics .= $bottles . " bottles of beer on the wall!\n";
$lyrics .= $bottles . " bottles of beer!\n";
$lyrics .= "Take one down, pass it around,\n";
$bottles--;
$lyrics .= $bottles . " bottles of beer on the wall!\n\n";
}
return $lyrics;
}
echo Song();
If you enjoyed this post, make sure you subscribe to my RSS feed!







Time: 21 May 2008, 5:50 pm
Hehe.