src/Config/Config.php
public function get(string $key,string $default=null)
  {
    $keys = explode('.',$key);
    $val = $this->confValues;

    for ($i=0; $i<count($keys); $i++) {
      $val = ( $val[ $keys[$i] ] ?? null);
      if (is_null($val)) break;
    }

    return $val ?? $default;
  }
public function get(string $key,string $default=null)
  {
    $keys = explode('.',$key);
    $val = $this->confValues;

    for ($i=0; $i<count($keys); $i++) {
      $val = ( $val[ $keys[$i] ] ?? null);
      if (is_null($val)) break;
    }

    return $val ?? $default;
  }
public function get ( string $ key , string $ default = null ) { $ keys = explode ( '.' , $ key ) ; $ val = $ this -> confValues ; for ( $ i = 0 ; $ i < count ( $ keys ) ; $ i ++ ) { $ val = ( $ val [ $ keys [ $ i ] ] ?? null ) ; if ( is_null ( $ val ) ) break ; } return $ val ?? $ default ; }
Get a config item

@param  string $key          "." notationed key to retreive
@param  string $default      Optional Default value if group::section::key not found
@return mixed
Get a config item