tidyNode::isAsp

(PHP 5, PHP 7, PHP 8)

tidyNode::isAspChecks if this node is ASP

Beschreibung

publictidyNode::isAsp(): bool

Tells whether the current node is ASP.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns true if the node is ASP, false otherwise.

Beispiele

Beispiel #1 Extract ASP code from a mixed HTML document

<?php

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

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

<?php

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

# asp node #1 <% response.write("Hello World!") %>
To Top