Method: a::inject
Injects an element into an array
Info
Syntax
a::inject($array, $position, $element='placeholder')
Parameters
- $array (array) The source array
- $position (int) The position, where to inject the element
- $element (mixed) The element, which should be injected
Return (array)
The result array including the new element