merge() public static method

Merges two arrays recursively.
public static merge ( array $first, array $second ) : array
$first array Original data.
$second array Data to be merged.
return array Merged data.
 /**
  *
  */
 public function testMerge()
 {
     $first = ['one' => 1, 'two' => 2, 'three' => ['four' => 4, 'five' => 5]];
     $second = ['two' => 'two', 'three' => ['four' => 'four']];
     $expected = ['one' => 1, 'two' => 'two', 'three' => ['four' => 'four', 'five' => 5]];
     $this->assertEquals($expected, Transform::merge($first, $second));
 }
 /**
  *	Merges the given properties with the current ones.
  *
  *	@param array $properties Properties to merge.
  */
 public function configure(array $properties)
 {
     $this->_properties = Transform::merge($this->_properties, $properties);
     return $this;
 }