(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2)
tidy_warning_count — 指定したドキュメントについて発生した Tidy 警告の数を返す
警告の数を返します。
例1 tidy_warning_count() の例
<?php
$html = '<p>test</i>
<bogustag>bogus</bogustag>';
$tidy = tidy_parse_string($html);
echo tidy_error_count($tidy) . "\n"; /1
echo tidy_warning_count($tidy) . "\n"; /5
?>
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