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

search for in the

tidyNode->hasChildren> <tidy_setopt
Last updated: Fri, 03 Oct 2008

view this page in

tidy_warning_count

(PHP 5, PECL tidy:0.5.2-1.2)

tidy_warning_countRetourne le nombre d'alertes Tidy rencontrées dans le document spécifié

Description

int tidy_warning_count ( tidy $object )

tidy_warning_count() retourne le nombre d'avertissements tidy rencontrés pour le document spécifié.

Liste de paramètres

object

L'objet Tidy.

Valeurs de retour

Retourne le nombre d'alertes.

Exemples

Exemple #1 Exemple avec 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
?>



add a note add a note User Contributed Notes
tidy_warning_count
There are no user contributed notes for this page.

tidyNode->hasChildren> <tidy_setopt
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites