public static function pivotFromTwoDimension(&$array)
    {
        foreach ((array) $array as $val) {
            if (is_array($val) || is_object($val)) {
                foreach ((array) $val as $key => $val2) {
                    $array = Arr::set($array, $key, $val2);
                }
            }
        }

        return $array;
    }
public static function pivotFromTwoDimension(&$array)
    {
        foreach ((array) $array as $val) {
            if (is_array($val) || is_object($val)) {
                foreach ((array) $val as $key => $val2) {
                    $array = Arr::set($array, $key, $val2);
                }
            }
        }

        return $array;
    }
public static function pivotFromTwoDimension ( & $ array ) { foreach ( ( array ) $ array as $ val ) { if ( is_array ( $ val ) || is_object ( $ val ) ) { foreach ( ( array ) $ val as $ key => $ val2 ) { $ array = Arr :: set ( $ array , $ key , $ val2 ) ; } } } return $ array ; }
Pivot two-dimensional array to one-dimensional.

@param   array &$array A two-dimension array.

@return  array  Pivoted array.
Pivot two - dimensional array to one - dimensional .