Created
September 24, 2014 14:03
-
-
Save devjack/9f863013e617e1c111a1 to your computer and use it in GitHub Desktop.
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 | |
function colours() { | |
for($i=0x0; $i<0xffffff; $i++) { | |
yield $i; | |
} | |
} | |
foreach(colours() as $elePHPant) { | |
echo sprintf("I want a #%06X elePHPant!".PHP_EOL, $elePHPant); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment