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

search for in the

tidy_getopt> <tidy_get_root
Last updated: Fri, 29 Aug 2008

view this page in

tidy_get_status

(PHP 5, PECL tidy:0.5.2-1.2)

tidy_get_status指定したドキュメントのステータスを取得する

説明

手続き型:

int tidy_get_status ( tidy $object )

オブジェクト指向型:

int tidy->getStatus ( void )

tidy_get_status() は、 指定した Tidy オブジェクト object のステータスを返します。エラー/警告が発生しなかった場合は 0、 警告やアクセイシビリティエラーの場合は 1、 エラーの場合は 2 を返します。

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



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

tidy_getopt> <tidy_get_root
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites