PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomNode->node_name> <DomNode->last_child
Last updated: Fri, 18 Jul 2008

view this page in

DomNode->next_sibling

(No version information available, might be only in CVS)

DomNode->next_sibling — Restituisce il successivo fratello del nodo

Descrizione

object DomNode->next_sibling ( void )

Restituisce il nodo di pari livello successivo al nodo corrente. Se non ci sono nodi successivi la funzione restituisce FALSE (< 4.3) oppure null (>= 4.3). Si può utilizzare questa funzione per passare in rassegna tutti i figli di un nodo, come illustrato nell'esempio.

Example #1 Rassegna dei nodi figlio

<?php
include("example.inc");

if (!
$dom domxml_open_mem($xmlstr)) {
  echo 
"Error while parsing the document\n";
  exit;
}

$elements $dom->get_elements_by_tagname("tbody");
$element $elements[0];
$child $element->first_child();

while (
$child) {
   
print_r($child);
   
$child $child->next_sibling();
}
?>

Vedere anche domnode_previous_sibling().



add a note add a note User Contributed Notes
DomNode->next_sibling
There are no user contributed notes for this page.

DomNode->node_name> <DomNode->last_child
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites