Documentation

Merge
in package

Utility class for merging arrays ans sdtClass objects.

Table of Contents

arrays()  : void
Merge source array into target array.
arrayToObject()  : void
Merge source array into an object.
objects()  : void
Merge source object into target object.

Methods

arrays()

Merge source array into target array.

public static arrays(array<string|int, mixed> &$target, array<string|int, mixed> $source) : void
Parameters
$target : array<string|int, mixed>
$source : array<string|int, mixed>
Return values
void

arrayToObject()

Merge source array into an object.

public static arrayToObject(object $target, array<string|int, mixed> $source) : void
Parameters
$target : object
$source : array<string|int, mixed>
Return values
void

objects()

Merge source object into target object.

public static objects(object $target, object $source) : void
Parameters
$target : object
$source : object
Return values
void

Search results