src/Expose/Config.php
public function get($path)
    {
        $p = explode('.', $path);
        $cfg = &$this->config;
        $count = 1;

        foreach ($p as $part) {
            if (array_key_exists($part, $cfg)) {
                // see if it's the end
                if ($count == count($p)) {
                    echo 'end';
                    return $cfg[$part];
                }
                $cfg = &$cfg[$part];
            }
            $count++;
        }
        return null;
    }
public function get($path)
    {
        $p = explode('.', $path);
        $cfg = &$this->config;
        $count = 1;

        foreach ($p as $part) {
            if (array_key_exists($part, $cfg)) {
                // see if it's the end
                if ($count == count($p)) {
                    echo 'end';
                    return $cfg[$part];
                }
                $cfg = &$cfg[$part];
            }
            $count++;
        }
        return null;
    }
public function get ( $ path ) { $ p = explode ( '.' , $ path ) ; $ cfg = & $ this -> config ; $ count = 1 ; foreach ( $ p as $ part ) { if ( array_key_exists ( $ part , $ cfg ) ) { // see if it's the end if ( $ count == count ( $ p ) ) { echo 'end' ; return $ cfg [ $ part ] ; } $ cfg = & $ cfg [ $ part ] ; } $ count ++ ; } return null ; }
Get the value from the config by "path"

@param string $path Path to config option (Ex. "foo.bar.baz")
@return mixed Either the found value or null if not found
Get the value from the config by path