tidy_get_status
(PHP 5, PECL tidy:0.5.2-1.2)
tidy_get_status — Get status of specified document
Description
Procedural style:
int tidy_get_status
( tidy $object
)
int tidy->getStatus
( void
)
Example #1 tidy_get_status() example
<?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
?>