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

search for in the

Tokenizer> <tidy_setopt
[edit] Last updated: Fri, 24 Jun 2011

view this page in

tidy_warning_count

(PHP 5, PECL tidy >= 0.5.2)

tidy_warning_countبازگرداندن تعداد هشدارهای Tidy مواجه شده در سند مشخص

Description

int tidy_warning_count ( tidy $object )

بازگرداندن تعداد هشدارهای Tidy مواجه شده در سند مشخص.

Parameters

object

The Tidy object.

Return Values

بازکرداندن تعداد هشدارها.

Examples

Example #1 مثال 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
?>

See Also

  • tidy_error_count() - بازگرداندن تعداد خطاهای Tidy مواجه شده در سند مشخص
  • tidy_access_count() - بازگرداندن تعداد هشدارهای دسترسی Tidy مواجه شده برای سند مشخص



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites