Warning: include_once(/home/mikemotorcade/www/wp-content/plugins/wordpress-support/wordpress-support.php): failed to open stream: Permission denied in /home/mikemotorcade/www/wp-settings.php on line 212

Warning: include_once(): Failed opening '/home/mikemotorcade/www/wp-content/plugins/wordpress-support/wordpress-support.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/mikemotorcade/www/wp-settings.php on line 212
It’s 3 o’clock in the morning! » 2008 » May » 21

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!