protected function findSection(array $open, $name = self::LAST_OPEN)
    {
        foreach ($open as $i => $item) {
            $item = explode(' ', $item['value']);

            if ($item[0] === $name) {
                return $i;
            }
        }

        if ($name == self::LAST_OPEN) {
            return $i;
        }

        return false;
    }
protected function findSection(array $open, $name = self::LAST_OPEN)
    {
        foreach ($open as $i => $item) {
            $item = explode(' ', $item['value']);

            if ($item[0] === $name) {
                return $i;
            }
        }

        if ($name == self::LAST_OPEN) {
            return $i;
        }

        return false;
    }
protected function findSection ( array $ open , $ name = self :: LAST_OPEN ) { foreach ( $ open as $ i => $ item ) { $ item = explode ( ' ' , $ item [ 'value' ] ) ; if ( $ item [ 0 ] === $ name ) { return $ i ; } } if ( $ name == self :: LAST_OPEN ) { return $ i ; } return false ; }
Finds a particular node in the open sections

@param *array  $open The open nodes
@param string  $name The last name of the node we are looking for

@return int The index where the section is found
Finds a particular node in the open sections