指定したドキュメントについて発生した Tidy 設定エラーの数を返す
$tidy
指定した Tidy オブジェクト tidy の設定時に発生した Tidy エラーの数を返します。
tidy
Tidy オブジェクト。
エラーの数を返します。
例1 tidy_config_count の例
<?php$html = '<p>test</I>';$config = array('doctype' => 'bogus');$tidy = tidy_parse_string($html, $config);/* 'bogus' は有効な文章型でないので、1 を出力する */echo tidy_config_count($tidy);?>