\[quote\] Possible Duplicate:
Does PHP have an equivalent to Python's list comprehension syntax? \[/quote\]Does PHP have any equivalent of the simple and awesome list comprehension in python? Specifically, can I do \[code\]a = [x for x in xrange(1,20)]\[/code\] in PHP w/o annoying loops?
Does PHP have an equivalent to Python's list comprehension syntax? \[/quote\]Does PHP have any equivalent of the simple and awesome list comprehension in python? Specifically, can I do \[code\]a = [x for x in xrange(1,20)]\[/code\] in PHP w/o annoying loops?