(PHP 5, PHP 7, PHP 8)
tidyNode::hasSiblings — Checks if a node has siblings
This function has no parameters.
Example #1 tidyNode::hasSiblings() example
<?php
$html = <<< HTML
<html><head>
<?php echo '<title>title</title>'; ?>
<#
alert('Hello World');
#>
</head>
<body>
<?php
The above example will output:
bool(false) bool(true)