PHP: tidy_get_status - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

tidy_getopt tidy_get_root

Last updated: Sat, 27 Jan 2007

view this page in

# tidy_get_status

(PHP 5)

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.

Пример 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 note User Contributed Notes
tidy_get_status
There are no user contributed notes for this page.
tidy_getopt tidy_get_root

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST