[PHP] Re: Insert new array after specific key in multidimensional array

2012-02-28 Thread Shawn McKenzie
On 02/27/2012 08:12 PM, Micky Hulse wrote: Howdy! Example code: https://gist.github.com/1928452 What would be the best way to insert $o_insert array into $o array after specified key? I hate to just ask for example code, but I can't seem to find the perfect solution. :( Many

[PHP] Re: Insert new array after specific key in multidimensional array

2012-02-28 Thread Micky Hulse
On Tue, Feb 28, 2012 at 8:36 AM, Shawn McKenzie nos...@mckenzies.net wrote: Might be an easier way but this should work.  You can sort the $before = true out for yourself :-) Hi Shawn, I've updated your function to do the $before bit: https://gist.github.com/1928452#file_array_insert.php I