Created
November 19, 2015 12:13
-
-
Save cwhite92/d0f3a05e0024ce8dfc6d to your computer and use it in GitHub Desktop.
PHP 99 bottles golf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $b=99;$d=" bottles of beer";$c=$d." on the wall";$f="file";do{echo $b.$c.", ".$b.$d.".\n";if(--$b==0){echo $f('http://is.gd/sKW90b')[0];$b=99;}else echo $f('http://is.gd/2m5PYo')[0];echo ", ".$b.$c.".\n\n";}while($b<99); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$b=99; | |
$d=" bottles of beer"; | |
$c=$d." on the wall"; | |
$f="file"; | |
do{ | |
echo $b.$c.", ".$b.$d.".\n"; | |
if(--$b==0){ | |
echo $f('http://is.gd/sKW90b')[0];$b=99; | |
}else | |
echo $f('http://is.gd/2m5PYo')[0]; | |
echo ", ".$b.$c.".\n\n"; | |
}while($b<99); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment