public function remove(array $path)
    {
        $current    = &$this->hierarchy;
        $pathLength = count($path);
        for ($i = 0; $i < $pathLength; $i++) {
            if (!isset($current[$path[$i]])) {
                break;
            }
            if ($i === $pathLength - 1) {
                unset($current[$path[$i]]);
                break;
            }
            $current = &$current[$path[$i]];
        }
    }
public function remove(array $path)
    {
        $current    = &$this->hierarchy;
        $pathLength = count($path);
        for ($i = 0; $i < $pathLength; $i++) {
            if (!isset($current[$path[$i]])) {
                break;
            }
            if ($i === $pathLength - 1) {
                unset($current[$path[$i]]);
                break;
            }
            $current = &$current[$path[$i]];
        }
    }
public function remove ( array $ path ) { $ current = & $ this -> hierarchy ; $ pathLength = count ( $ path ) ; for ( $ i = 0 ; $ i < $ pathLength ; $ i ++ ) { if ( ! isset ( $ current [ $ path [ $ i ] ] ) ) { break ; } if ( $ i === $ pathLength - 1 ) { unset ( $ current [ $ path [ $ i ] ] ) ; break ; } $ current = & $ current [ $ path [ $ i ] ] ; } }
Removes the item from the hierarchy

@param string[] $path
Removes the item from the hierarchy