src/Config/Config.php
public function get($name = null) {
        $data = $this->data;
        if ($name) {
            $names = explode('.', $name);
            if ($names) {
                foreach ($names as $name) {
                    if (is_array($data) && array_key_exists($name, $data)) {
                        $data = $data[$name];
                    } else {
                        return null;
                    }
                }
            }
        }
        return $data;
    }
public function get($name = null) {
        $data = $this->data;
        if ($name) {
            $names = explode('.', $name);
            if ($names) {
                foreach ($names as $name) {
                    if (is_array($data) && array_key_exists($name, $data)) {
                        $data = $data[$name];
                    } else {
                        return null;
                    }
                }
            }
        }
        return $data;
    }
public function get ( $ name = null ) { $ data = $ this -> data ; if ( $ name ) { $ names = explode ( '.' , $ name ) ; if ( $ names ) { foreach ( $ names as $ name ) { if ( is_array ( $ data ) && array_key_exists ( $ name , $ data ) ) { $ data = $ data [ $ name ] ; } else { return null ; } } } } return $ data ; }
Get the value for a key with the given name
Can use dot notation for acessing nested keys

Example:
$config->get('database') will return an associative array of all the database values
$config->get('database.host') will return the value for 'host' within the array stored at key 'database'
Get the value for a key with the given name Can use dot notation for acessing nested keys