phprs\util\Tree::visit PHP Method

visit() public method

遍历路径
public visit ( array $path, $vistor, $exact_match = false ) : boolean
$path array
return boolean 全部遍历完返回true,否则返回false
    public function visit($path, $vistor, $exact_match = false)
    {
        return $this->visitNode($path, function ($name, $node) use($vistor) {
            return $vistor($name, array_key_exists('value', $node) ? $node['value'] : null);
        }, $exact_match);
    }