protected function getValue($key, array $array = array())
    {
        $keys = $this->parseKey($key);

        while (count($keys) > 0 and !is_null($array)) {
            $key = array_shift($keys);
            $array = isset($array[$key]) ? $array[$key] : null;
        }

        return $array;
    }
protected function getValue($key, array $array = array())
    {
        $keys = $this->parseKey($key);

        while (count($keys) > 0 and !is_null($array)) {
            $key = array_shift($keys);
            $array = isset($array[$key]) ? $array[$key] : null;
        }

        return $array;
    }
protected function getValue ( $ key , array $ array = array ( ) ) { $ keys = $ this -> parseKey ( $ key ) ; while ( count ( $ keys ) > 0 and ! is_null ( $ array ) ) { $ key = array_shift ( $ keys ) ; $ array = isset ( $ array [ $ key ] ) ? $ array [ $ key ] : null ; } return $ array ; }
Get a value from a nested array based on a separated key
@param  string $key
@param  array  $array
@return mixed
Get a value from a nested array based on a separated key