| 
        
            DOMNode::compareDocumentPositionCompares the position of two nodes Description
   public int DOMNode::compareDocumentPosition(DOMNode  
  $other)Compares the position of the other node relative to this node. Parameters
 Return Values
   A bitmask of the  ExamplesExample #1 DOMNode::compareDocumentPosition example The above example will output: int(20) // This is DOMNode::DOCUMENT_POSITION_CONTAINED_BY | DOMNode::DOCUMENT_POSITION_FOLLOWING int(2) // This is DOMNode::DOCUMENT_POSITION_PRECEDING  |