Created
January 29, 2018 20:44
-
-
Save xmgr/346eeb763b68b387377645b91db4f0f4 to your computer and use it in GitHub Desktop.
Short loop foo-bar-foobar - the array-way
This file contains hidden or 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 while(++$i<99)echo['Foo','Bar','Foobar'][$i%6?$i%2?$i%3?'':1:0:2]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment