InteractsWithInputPath
Table of Contents
Methods
- mergeBeforeKey() : array<string|int, mixed>
- Prepend the given $values in front of the $key in $input.
- mergeBeforePathInput() : array<string|int, mixed>
- Searches in the $input array for the key bu the $path, and then prepend the $values in front of that key.
Methods
mergeBeforeKey()
Prepend the given $values in front of the $key in $input.
protected
static mergeBeforeKey(array<string|int, mixed> $input, int $key[, array<string|int, mixed> $values = [] ]) : array<string|int, mixed>
Parameters
- $input : array<string|int, mixed>
- $key : int
- $values : array<string|int, mixed> = []
Return values
array<string|int, mixed>mergeBeforePathInput()
Searches in the $input array for the key bu the $path, and then prepend the $values in front of that key.
protected
static mergeBeforePathInput(array<string|int, mixed> $input, string $path[, array<string|int, mixed> $values = [] ]) : array<string|int, mixed>
Parameters
- $input : array<string|int, mixed>
- $path : string
- $values : array<string|int, mixed> = []