tidy_get_status
tidy_get_status — 指定したドキュメントのステータスを取得する
説明
手続き言語型スタイル:int tidy_get_status ( tidy object )
オブジェクト指向言語型スタイル:
int tidy->getStatus ( void )
tidy_get_status() は、 指定した Tidy オブジェクト object のステータスを返します。エラー/警告が発生しなかった場合は 0、 警告やアクセイシビリティエラーの場合は 1、 エラーの場合は 2 を返します。
例 2370. tidy_get_status() の例
<?php
$html = '<p>paragraph</i>';
$tidy = tidy_parse_string($html);
$html2 = '<bogus>test</bogus>';
$tidy2 = tidy_parse_string($html2);
echo tidy_get_status($tidy); //1
echo tidy_get_status($tidy2); //2
?>
- tidy_get_statusのページへのリンク