nxsMergeArraysOV

The NextScripts: Social Networks Auto-Poster nxsMergeArraysOV function.

Description

nxsMergeArraysOV( $Arr1, $Arr2 ); 

Parameters (2)

0. $arr1
The arr1.
1. $arr2
The arr2.

Usage

  1. if ( !function_exists( 'nxsMergeArraysOV' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The arr1. 
  5. $arr1 = null; 
  6.  
  7. // The arr2. 
  8. $arr2 = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = nxsMergeArraysOV($arr1, $arr2); 
  12.  

Defined (1)

The function is defined in the following location(s).

/nxs_functions.php  
  1. if (!function_exists('nxsMergeArraysOV')) {function nxsMergeArraysOV($Arr1, $Arr2) { 
  2. foreach($Arr2 as $key => $value) { if(array_key_exists($key, $Arr1) && is_array($value)) $Arr1[$key] = nxsMergeArraysOV($Arr1[$key], $Arr2[$key]); else $Arr1[$key] = $value;} return $Arr1; 
  3. }}