PHP » GoLang |
login |
register |
about
|
array_unshift(PHP 4, PHP 5, PHP 7) array_unshift — Prepend one or more elements to the beginning of an array Description
array_unshift() prepends passed elements to the front
of the Parameters
Return Values
Returns the new number of elements in the Changelog
Examples
Example #1 array_unshift() example
<?phpThe above example will output:
Array
(
[0] => apple
[1] => raspberry
[2] => orange
[3] => banana
)
See Also
|
more
Most requested
more
Last requests
|