prepend.php
Table of Contents
Functions
- prepend() : array<string|int, mixed>
- Prepends keys/values to the beginning of an array.
Functions
prepend()
Prepends keys/values to the beginning of an array.
prepend(array<string|int, mixed> $array, array<string|int, mixed> $before) : array<string|int, mixed>
Parameters
- $array : array<string|int, mixed>
-
The target array.
- $before : array<string|int, mixed>
-
Keys/values to prepend.
Tags
Return values
array<string|int, mixed> —The merged array with $before keys first.