src/Kisma/Core/Utility/Option.php
public static function merge( $target )
    {
        $_arrays = static::clean( func_get_args() );
        $_target = static::clean( array_shift( $_arrays ) );

        foreach ( $_arrays as $_array )
        {
            $_target = array_merge(
                $_target,
                static::clean( $_array )
            );

            unset( $_array );
        }

        unset( $_arrays );

        return $_target;
    }
public static function merge( $target )
    {
        $_arrays = static::clean( func_get_args() );
        $_target = static::clean( array_shift( $_arrays ) );

        foreach ( $_arrays as $_array )
        {
            $_target = array_merge(
                $_target,
                static::clean( $_array )
            );

            unset( $_array );
        }

        unset( $_arrays );

        return $_target;
    }
public static function merge ( $ target ) { $ _arrays = static :: clean ( func_get_args ( ) ) ; $ _target = static :: clean ( array_shift ( $ _arrays ) ) ; foreach ( $ _arrays as $ _array ) { $ _target = array_merge ( $ _target , static :: clean ( $ _array ) ) ; unset ( $ _array ) ; } unset ( $ _arrays ) ; return $ _target ; }
Merge one or more arrays but ensures each is an array. Basically an idiot-proof array_merge

@param array $target The destination array

@return array The resulting array
@return array
Merge one or more arrays but ensures each is an array . Basically an idiot - proof array_merge