Monthly Archives: November 2008

Concatenating arrays in PHP

Just a quick post so I know where to look the next time I forget how to concatenate arrays in PHP. Use array_merge to concatenate two numerically-indexed arrays; not array_push and not the array union operator: +. $first = array(‘doh’,

Posted in JavaScript