(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2)
tidy::getStatus -- tidy_get_status — Get status of specified document
Object-oriented style
Procedural style
Returns the status for the specified tidy tidy
.
Returns 0 if no error/warning was raised, 1 for warnings or accessibility errors, or 2 for errors.
Example #1 tidy::getStatus() example
<?php
$html = '<p>paragraph</i>';
$tidy = new tidy();
$tidy->parseString($html);
$tidy2 = new tidy();
$html2 = '<bogus>test</bogus>';
$tidy2->parseString($html2);
echo $tidy->getStatus(); /1
echo $tidy2->getStatus(); /2
?>
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant