指定したドキュメントについて発生した Tidy 警告の数を返す
$tidy
指定したドキュメントについて発生した Tidy 警告の数を返します。
tidy
Tidy オブジェクト。
警告の数を返します。
例1 tidy_warning_count の例
<?php$html = '<p>test</i><bogustag>bogus</bogustag>';$tidy = tidy_parse_string($html);echo tidy_error_count($tidy) . "\n"; //1echo tidy_warning_count($tidy) . "\n"; //5?>