Understanding array()each example