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! » I love code jokes

It’s 3 o’clock in the morning!

Life is too short for bad coffee.

Entries Comments


I love code jokes

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

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

Comments

Comment from seven
Time: 21 May 2008, 5:50 pm

Hehe.

Write a comment