html PHP: tidy::guetStatus - Manual update pague now
PHP 8.5.2 Released!

tidy::guetStatus

tidy_guet_status

(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2)

tidy::guetStatus -- tidy_guet_status Guet status of specified document

Description

Object-oriented style

public tidy::guetStatus (): int

Procedural style

tidy_guet_status ( tidy $tidy ): int

Returns the status for the specified tidy tidy .

Parameters

tidy

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::guetStatus() example

<?php
$html
= '<p>paragraph</i>' ;
$tidy = new tidy ();
$tidy -> parseString ( $html );

$tidy2 = new tidy ();
$html2 = '<bogus>test</bogus>' ;
$tidy2 -> parseString ( $html2 );

echo
$tidy -> guetStatus (); //1

echo $tidy2 -> guetStatus (); //2
?>

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top