protected function getOptVal(array $opts, $option)
    {
        $ploded = explode('.', $option);
        $arr = $opts;
        $val = null;
        while ($curr = array_shift($ploded)) {
            if (isset($arr[$curr])) {
                if (is_array($arr[$curr])) {
                    $arr = $arr[$curr];
                } else {
                    return $arr[$curr];
                }
            } else {
                return null;
            }
        }
    }
protected function getOptVal(array $opts, $option)
    {
        $ploded = explode('.', $option);
        $arr = $opts;
        $val = null;
        while ($curr = array_shift($ploded)) {
            if (isset($arr[$curr])) {
                if (is_array($arr[$curr])) {
                    $arr = $arr[$curr];
                } else {
                    return $arr[$curr];
                }
            } else {
                return null;
            }
        }
    }
protected function getOptVal ( array $ opts , $ option ) { $ ploded = explode ( '.' , $ option ) ; $ arr = $ opts ; $ val = null ; while ( $ curr = array_shift ( $ ploded ) ) { if ( isset ( $ arr [ $ curr ] ) ) { if ( is_array ( $ arr [ $ curr ] ) ) { $ arr = $ arr [ $ curr ] ; } else { return $ arr [ $ curr ] ; } } else { return null ; } } }
Retrieves a nested value or null
@param array $opts
@param mixed $option
@return Ambigous <>|NULL|multitype:
Retrieves a nested value or null