TwistPHP Documentation

arrayMergeRecursive

File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
Extends:

arrayMergeRecursiveFully merge two multidimensional arrays and return the new merged array.

Parameters

Name Type Description
$arrPrimaryarrayn/a
$arrSecondaryarrayn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$arrPrimary = array(=> 'foo'=> 'bar');
$arrSecondary = array(=> 'foo'=> 'bar');

//Call the function arrayMergeRecursive with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> arrayMergeRecursive($arrPrimary$arrSecondary);