siblings() 공개 메소드

Returns the siblings nodes of the current selection.
public siblings ( ) : Crawler
리턴 Crawler A Crawler instance with the sibling nodes
예제 #1
0
 /**
  * @param Crawler $block
  */
 public function climbToHighestParent(Crawler &$block)
 {
     while ($block->siblings()->getNode(0) == null) {
         $block = $block->parents()->first();
     }
 }