Created
November 19, 2015 12:17
-
-
Save cwhite92/a1adc0b3fcdd2559b886 to your computer and use it in GitHub Desktop.
PHP 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){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){ | |
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