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

search for in the

tidy_get_output> <tidy_error_count
[edit] Last updated: Fri, 24 Jun 2011

view this page in

tidy_get_error_buffer

(PHP 5, PECL tidy >= 0.5.2)

tidy_get_error_bufferبازگرداندن هشدارها و خطاها هنگام تحلیل سند مشخص

Description

Procedural style:

string tidy_get_error_buffer ( tidy $object )

Object oriented style (property):

string $errorBuffer;

بازگرداندن هشدارها و خطاها هنگام تحلیل سند مشخص.

Parameters

object

The Tidy object.

Return Values

بازگرداندن بافر خطا به عنوان رشته.

Examples

Example #1 مثال tidy_get_error_buffer()

<?php
$html 
'<p>paragraph</p>';

$tidy tidy_parse_string($html);

echo 
tidy_get_error_buffer($tidy);
/* or in OO: */
echo $tidy->errorBuffer;
?>

The above example will output:

line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 1 - Warning: inserting missing 'title' element

See Also

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


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

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