Function array_insert
Inserts a value in a array before, or after, at given key.
Numeric keys are not preserved.
Parameters summary
mixed |
$array |
|
mixed |
$relative |
|
mixed |
$value |
|
mixed |
$key = null |
|
mixed |
$after = false |
Return value summary
|
new array with the value inserted at the requested position. |