Jarves\Properties::getByPath PHP Method

getByPath() public method

Gets the value of $path
public getByPath ( string $path ) : mixed
$path string slash delimited string
return mixed
    public function getByPath($path)
    {
        $path2 = explode('/', $path);
        $data = $this->data;
        foreach ($path2 as $node) {
            if (!isset($data[$node])) {
                return false;
            }
            $data = $data[$node];
        }
        return $data;
    }