tidyNode::hasSiblings

(PHP 5, PHP 7, PHP 8)

tidyNode::hasSiblingsChecks if a node has siblings

Beschreibung

publictidyNode::hasSiblings(): bool

Tells if the node has siblings.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns true if the node has siblings, false otherwise.

Beispiele

Beispiel #1 tidyNode::hasSiblings() example

<?php

$html
= <<< HTML
<html><head>
<?php echo '<title>title</title>'; ?>
<#

alert('Hello World');
#>
</head>
<body>

<?php

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(false) bool(true)
To Top