Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*============================================================================
- ----------------------------------------------------------------------------
- 99_bottles.php - 99 Bottles Of Beer Lyrics.
- (c) Damion 'Phr0z3n.dev' Tapper, 2013.
- Email: Phr0z3n.Dev@Gmail.com
- ----------------------------------------------------------------------------
- ============================================================================*/
- ?>
- <?php
- echo ">>------------------> 99 Bottles Of Beer Lyrics <------------------<< <BR><BR>";
- for($bottles_of_beer = 99; $bottles_of_beer > 0; $bottles_of_beer--)
- {
- echo "$bottles_of_beer bottle";
- if($bottles_of_beer != 1)
- echo "s";
- echo " of beer on the wall, $bottles_of_beer bottle";
- if($bottles_of_beer != 1)
- echo "s";
- echo " of beer.<BR>";
- echo "Take one down and pass it around, ";
- if(($bottles_of_beer - 1) != 0)
- echo $bottles_of_beer - 1;
- else
- echo "no more";
- echo " bottle";
- if(($bottles_of_beer - 1) != 1)
- echo "s";
- echo " of beer on the wall.<BR><BR>";
- }
- echo "No more bottles of beer on the wall, no more bottles of beer.<BR>";
- echo "Go to the store and buy some more, 99 bottles of beer on the wall.<BR><BR>";
- echo ">>-------------------------------> + <-------------------------------<<";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement