Skip to content

Instantly share code, notes, and snippets.

@mcuadros
Created October 8, 2013 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcuadros/6877641 to your computer and use it in GitHub Desktop.
Save mcuadros/6877641 to your computer and use it in GitHub Desktop.
99 bottles = 232 chars = 2 hours missed @ http://www.phpgolf.org/challenge/99-Bottles

http://www.phpgolf.org/challenge/99-Bottles

<?$w=' on the wall';$c=' bottle';$p=$c.s;$b=' of beer';for($v=99;$v>0;print"$r$w, $r.\n".(--$v?"Take one down and pass it around, $v".($v>1?$p:$c)."$b$w.":"Go to the store and buy some more, 99$p$b$w.")."\n\n")$r=$v.($v>1?$p:$c).$b;
@madman
Copy link

madman commented Nov 23, 2013

will change \n to real new line, and you will have 229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment