I need to insert a couple of new items into an existing populated array but I want to insert them in a particular position that may not always be the same.
I started out using array_push but that just appends the array. I figure some kind of function that will iterate through the array looking for a match and then do the insert.
Thanks
Edit: 44,444 posts lolPHP Code:array_push($myitems, 'item6', 'item7', 'item8');





Reply With Quote