I'm trying to add the value to the array at a given index, but so far without any luck. I've got the following:
$array = array('first', 'second', 'third');
array_splice($array, 0, 0, array('another'));
which results in empty array.
I've also tried different offsets such as 1 or 2 - with the same result.
Could someone please explain what I'm doing wrong here?