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

search for in the

tidy::head> <tidy::getRelease
Last updated: Fri, 13 Nov 2009

view this page in

tidy::getStatus

tidy_get_status

(PHP 5, PECL tidy >= 0.5.2)

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

説明

手続き型

int tidy_get_status ( tidy $object )

オブジェクト指向型

int tidy::getStatus ( void )

指定した Tidy オブジェクト object のステータスを返します。

パラメータ

object

Tidy オブジェクト。

返り値

エラー/警告が発生しなかった場合は 0、 警告やアクセイシビリティエラーの場合は 1、 エラーの場合は 2 を返します。

例1 tidy::getStatus() の例

<?php
$html 
'<p>paragraph</i>';
$tidy = new tidy();
$tidy->parseString($html);

$tidy2 = new tidy();
$html2 '<bogus>test</bogus>';
$tidy2->parseString($html2);

echo 
$tidy->getStatus(); //1

echo $tidy2->getStatus(); //2
?>



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

tidy::head> <tidy::getRelease
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites