public function insertBefore($targets) {
    foreach ($this->nodes as $node) {
      $node->insertBefore($targets);
    }
    return $this;
  }
public function insertBefore($targets) {
    foreach ($this->nodes as $node) {
      $node->insertBefore($targets);
    }
    return $this;
  }
public function insertBefore ( $ targets ) { foreach ( $ this -> nodes as $ node ) { $ node -> insertBefore ( $ targets ) ; } return $ this ; }
Insert every node in the set of matched nodes before the targets.
@param Node|Node[]|NodeCollection $targets Nodes to insert before.
@return $this
Insert every node in the set of matched nodes before the targets .