Funkcje Tidy
PHP Manual

tidy_warning_count

(PHP 5, PECL tidy:0.5.2-1.2)

tidy_warning_count Zwraca liczbę ostrzeżeń Tidy napotkanych w określonym dokumencie

Opis

int tidy_warning_count ( tidy $obiekt )

tidy_warning_count() zwraca liczbę ostrzeżeń Tidy napotkanych w określonym dokumencie.

Example #1 Przykład tidy_warning_count()

<?php
$html 
'<p>test</i>
<bogustag>bogus</bogustag>'
;

$tidy tidy_parse_string($html);

echo 
tidy_error_count($tidy) . "\n"//1
echo tidy_warning_count($tidy) . "\n"//5
?>

Patrz także: tidy_access_count() i tidy_error_count().


Funkcje Tidy
PHP Manual