Query: tidy_get_status
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TIDY_GET_STATUS(3) 1 TIDY_GET_STATUS(3) tidy::getStatus - Get status of specified document Object oriented styleSYNOPSISint tidy::getStatus (void )DESCRIPTIONProcedural style int tidy_get_status (tidy $object) Returns the status for the specified tidy $object.PARAMETERSo $object - The Tidy object.RETURN VALUESReturns 0 if no error/warning was raised, 1 for warnings or accessibility errors, or 2 for errors.EXAMPLESExample #1 tidy_get_status(3) 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 ?> PHP Documentation Group TIDY_GET_STATUS(3)
Related Man Pages |
---|
tidy_diagnose(3) - php |
tidy_get_head(3) - php |
tidy_get_opt_doc(3) - php |
tidy_getopt(3) - php |
tidy.getoptdoc(3) - php |