no comma after the last array item. However, for multi-line arrays, there should be a comma after the last array item. ]]> , ); ]]> 'foo', 2 => 'bar', ]; ]]> 'foo', 2 => 'bar' ]; ]]>