public static function collapse($array)
    {
        $results = [];

        foreach ($array as $values) {
            if (!self::accessible($values)) {
                continue;
            }

            $results = array_merge($results, $values);
        }

        return $results;
    }
public static function collapse($array)
    {
        $results = [];

        foreach ($array as $values) {
            if (!self::accessible($values)) {
                continue;
            }

            $results = array_merge($results, $values);
        }

        return $results;
    }
public static function collapse ( $ array ) { $ results = [ ] ; foreach ( $ array as $ values ) { if ( ! self :: accessible ( $ values ) ) { continue ; } $ results = array_merge ( $ results , $ values ) ; } return $ results ; }
Collapse an array of arrays into a single array.

@param \ArrayAccess|array $array

@return array
Collapse an array of arrays into a single array .