It’s 3 o’clock in the morning!

Life is too short for bad coffee.

Entries Comments


Date: May 21st, 2008

I love code jokes

21 May, 2008 (2:18pm) | Blog | 1 comment

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();

1 comment | Add a Comment!