tidy::$errorBuffer

tidy_get_error_buffer

(PHP 5, PHP 7, PECL tidy >= 0.5.2)

tidy::$errorBuffer -- tidy_get_error_bufferReturn warnings and errors which occurred parsing the specified document

说明

面向对象风格 (property):

public string $tidy->errorBuffer;

过程化风格:

tidy_get_error_buffer ( tidy $tidy ) : string

Returns warnings and errors which occurred parsing the specified document.

参数

tidy

The Tidy 对象。

返回值

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
相关文章
php datetimeimmutable returns the warnings and errorsphp domimplementation creates a domdocument object of the specified type with its document elementphp gupnp 函数 sets the specified action return valuesphp imap 函数 returns all of the imap errors that have occurredphp snmp 函数 return all objects including their respective object id within the specified onephp tidy 函数 returns the number of tidy accessibility warnings encountered for specified documentphp tidy 函数 returns the number of tidy configuration errors encountered for specified documentphp tidy 函数 returns the number of tidy errors encountered for specified documentphp tidy 函数 returns the number of tidy warnings encountered for specified documentphp harudoc return current page of the documentphp harudoc save the document into the specified filephp harupage calculate the byte length of characters which can be included on one line of the specified widthphp mongogridfscursor return the next file to which this cursor points and advance the cursorphp reflectionfunctionabstract gets the specified return type of a functionphp sdo 函数 return the property for the specified sequence indexphp tidy get the detected html version for the specified documentphp tidy returns the value of the specified configuration option for the tidy documentphp tidy get status of specified documentphp tidy indicates if the document is a xhtml documentphp tidy return warnings and errors which occurred parsing the specified document
关注编程学问公众号