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