MergeRecursiveTrait
VuFind Merge Recursive Trait - Provides Custom Array Merge Function
Tags
Table of Contents
- isStringKeyedArray() : bool
- Determine if a variable is a string-keyed array
- mergeRecursive() : array<string|int, mixed>|string
- Merge array recursive without combining single values to a new array as php's array_merge_recursive function does.
Methods
isStringKeyedArray()
Determine if a variable is a string-keyed array
protected
isStringKeyedArray(mixed $op) : bool
Parameters
- $op : mixed
-
Variable to test
Return values
bool —mergeRecursive()
Merge array recursive without combining single values to a new array as php's array_merge_recursive function does.
protected
mergeRecursive(array<string|int, mixed>|string $val1, array<string|int, mixed>|string $val2) : array<string|int, mixed>|string
Parameters
- $val1 : array<string|int, mixed>|string
-
First Value
- $val2 : array<string|int, mixed>|string
-
Second Value
Return values
array<string|int, mixed>|string —merged values