downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<tidy_get_roottidy_getopt>
Last updated: Thu, 26 Jun 2008

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 )

Object oriented style:

int tidy->getStatus ( void )

tidy_get_status() returns the status for the specified tidy object . It returns 0 if no error/warning was raised, 1 for warnings or accessibility errors, or 2 for errors.

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
?>



add a noteadd a note User Contributed Notes
Get status of specified document
There are no user contributed notes for this page.




<tidy_get_roottidy_getopt>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs