in reply to Difference between for and foreach
Wrong. See the replies by Joost and johngg, and for practical demonstration try this one-liner