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