public static function getValues($array)
    {
        settype($array, 'array');
        $values = array();
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                $values = array_merge($values, self::getValues($value));
            } else {
                $values[] = $value;
            }
        }

        return $values;
    }
public static function getValues($array)
    {
        settype($array, 'array');
        $values = array();
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                $values = array_merge($values, self::getValues($value));
            } else {
                $values[] = $value;
            }
        }

        return $values;
    }
public static function getValues ( $ array ) { settype ( $ array , 'array' ) ; $ values = array ( ) ; foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ values = array_merge ( $ values , self :: getValues ( $ value ) ) ; } else { $ values [ ] = $ value ; } } return $ values ; }
Flattens a multi-dimensial array and return all the values as one single array.

@param array $array The array to be flattened

@return array
Flattens a multi - dimensial array and return all the values as one single array .