after() public method

This inserts the element as a peer to the currently matched elements. Contrast this with {@link append()}, which inserts the data as children of matched elements.
See also: before()
See also: append()
public after ( mixed $data )
$data mixed The data to be appended.
示例#1
0
 /**
  * Insert the contents of the current DOMQuery after the nodes in the
  * destination DOMQuery object.
  *
  * @param DOMQuery $dest
  *  Destination object where the current elements will be deposited.
  * @retval object DOMQuery
  *  The present DOMQuery, unaltered. Only the destination object is altered.
  * @see after()
  * @see insertBefore()
  * @see append()
  * @throws QueryPath::Exception
  *  Thrown if $data is an unsupported object type.
  */
 public function insertAfter(DOMQuery $dest)
 {
     foreach ($this->matches as $m) {
         $dest->after($m);
     }
     return $this;
 }