downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Tokenizer> <tidy_setopt
Last updated: Fri, 13 Nov 2009

view this page in

tidy_warning_count

(PHP 5, PECL tidy >= 0.5.2)

tidy_warning_count指定したドキュメントについて発生した Tidy 警告の数を返す

説明

int tidy_warning_count ( tidy $object )

指定したドキュメントについて発生した Tidy 警告の数を返します。

パラメータ

object

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
?>

参考

  • tidy_error_count() - 指定したドキュメントについて発生した Tidy エラーの数を返す
  • tidy_access_count() - 指定したドキュメントについて発生したTidyアクセシビリティ警告の数を返す



add a note add a note User Contributed Notes
tidy_warning_count
There are no user contributed notes for this page.

Tokenizer> <tidy_setopt
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites