VuFind API Documentation

MergeRecursiveTrait

VuFind Merge Recursive Trait - Provides Custom Array Merge Function

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

author

Chris Hallberg challber@villanova.edu

author

Thomas Wagener wagener@hebis.uni-frankfurt.de

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Page

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

Search results