src/dom/Dom.php
public static function searchNode($node, $items, $offset = 0)
    {
        $len = count($items);
        for ($i = $offset; $i < $len; $i++) {
            $item = $items[$i];
            if ($item->isSameNode($node)) {
                return $i;
            }
        }
        return false;
    }
public static function searchNode($node, $items, $offset = 0)
    {
        $len = count($items);
        for ($i = $offset; $i < $len; $i++) {
            $item = $items[$i];
            if ($item->isSameNode($node)) {
                return $i;
            }
        }
        return false;
    }
public static function searchNode ( $ node , $ items , $ offset = 0 ) { $ len = count ( $ items ) ; for ( $ i = $ offset ; $ i < $ len ; $ i ++ ) { $ item = $ items [ $ i ] ; if ( $ item -> isSameNode ( $ node ) ) { return $ i ; } } return false ; }
Searches a node in a list.

This function may return false, if the node was not found.

@param DOMNode $node   DOMNode object
@param array   $items  List of DOMNode objects
@param integer $offset Offset (default is 0)

@return false|integer
Searches a node in a list .