tidy_get_status(3) php man page | unix.com

Man Page: tidy_get_status

Operating Environment: php

Section: 3

TIDY_GET_STATUS(3)							 1							TIDY_GET_STATUS(3)

tidy::getStatus - Get status of specified document

       Object oriented style

SYNOPSIS
int tidy::getStatus (void )
DESCRIPTION
Procedural style int tidy_get_status (tidy $object) Returns the status for the specified tidy $object.
PARAMETERS
o $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_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_access_count(3) - php
tidy_diagnose(3) - php
tidy_get_head(3) - php
tidy_get_opt_doc(3) - php
tidy.html(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!