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, 06 Nov 2009

view this page in

tidy::getStatus

tidy_get_status

(PHP 5, PECL tidy >= 0.5.2)

tidy::getStatus -- tidy_get_statusGet status of specified document

Description

Procedural style

int tidy_get_status ( tidy $object )

Object oriented style

int tidy::getStatus ( void )

Returns the status for the specified tidy object .

Parameters

object

The Tidy object.

Return Values

Returns 0 if no error/warning was raised, 1 for warnings or accessibility errors, or 2 for errors.

Examples

Example #1 tidy::getStatus() example

<?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, 06 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites