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

search for in the

tidy_get_output> <tidy_error_count
[edit] Last updated: Fri, 18 Sep 2009

view this page in

tidy_get_error_buffer

(PHP 5, PECL tidy >= 0.5.2)

tidy_get_error_bufferReturn warnings and errors which occurred parsing the specified document

Описание

Procedural style:

string tidy_get_error_buffer ( tidy $object )

Object oriented style (property):

string $errorBuffer;

Returns warnings and errors which occurred parsing the specified document.

Параметри

object

The Tidy object.

Връщани стойности

Returns the error buffer as a string.

Примери

Example #1 tidy_get_error_buffer() example

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

$tidy tidy_parse_string($html);

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

Примерът по-горе ще изведе:

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

Вж. също

  • tidy_access_count() - Returns the Number of Tidy accessibility warnings encountered for specified document
  • tidy_error_count() - Returns the Number of Tidy errors encountered for specified document
  • tidy_warning_count() - Returns the Number of Tidy warnings encountered for specified document


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

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