I'm trying to do something but I can't find any solution, I'm also having some trouble putting it into works so here is a sample code, maybe it'll be enough to demonstrate what I'm aiming for:
$input = array
(
'who' => 'me',
'what' => 'car',
'more' => 'car',
'when' => 'today',
);
Now, I want to use array_splice() to re...
var newlist = list.slice( 0, pos ).concat( tasks ).concat( list.slice( pos ) );
This makes me shudder just looking at it.
...
I think I may not understand correctly how array_splice is supposed to work. My understanding is that the first param is your initial array, the second param is the element to start at, and the third param is the length, or number of elements to remove/replace.
So, I have this array (print_r output):
Array (
[0] => Array ( [TypeFlag] ...