Instantly share code, notes, and snippets.

Embed
What would you like to do?
Short loop foo-bar-foobar - the array-way
<?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