public function union($array=null) {
    $arrays = self::_wrapArgs(func_get_args(), 1);
    
    if(count($arrays) === 1) return self::_wrap($array);
    
    $__ = new self;
    return self::_wrap($__->flatten(array_values(array_unique(call_user_func_array('array_merge', $arrays)))));
  }
public function union($array=null) {
    $arrays = self::_wrapArgs(func_get_args(), 1);
    
    if(count($arrays) === 1) return self::_wrap($array);
    
    $__ = new self;
    return self::_wrap($__->flatten(array_values(array_unique(call_user_func_array('array_merge', $arrays)))));
  }
public function union ( $ array = null ) { $ arrays = self :: _wrapArgs ( func_get_args ( ) , 1 ) ; if ( count ( $ arrays ) === 1 ) return self :: _wrap ( $ array ) ; $ __ = new self ; return self :: _wrap ( $ __ -> flatten ( array_values ( array_unique ( call_user_func_array ( 'array_merge' , $ arrays ) ) ) ) ) ; }
Merge together multiple arrays
Merge together multiple arrays