(PHP 8 >= 8.4.0)
tidyNode::getNextSibling — Renvoie le noeud frère suivant du noeud courant
Renvoie le noeud frère suivant du noeud courant.
Cette fonction ne contient aucun paramètre.
Exemple #1 Exemple de tidyNode::getNextSibling()
<?php
$html = <<< HTML
<html>
 <head>
 </head>
 <body>
  <p>Hello</p><p>World</p>
 </body>
</html>
HTML;
$tidy = tidy_parse_string($html);
$node = $tidy->body();
var_dump($node->child[0]->getNextSibling()->value);
?>L'exemple ci-dessus va afficher :
string(13) "<p>World</p> "
