ob_tidyhandler

(PHP 5, PHP 7)

ob_tidyhandlerob_start callback function to repair the buffer

说明

ob_tidyhandler ( string $input [, int $mode ] ) : string

Callback function for ob_start() to repair the buffer.

参数

input

The buffer.

mode

The buffer mode.

返回值

Returns the modified buffer.

范例

Example #1 ob_tidyhandler() example

<?php
ob_start
('ob_tidyhandler');

echo 
'<p>test</i>';
?>

以上例程会输出:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</p>
</body>
</html>

参见

相关文章
php cubrid 函数 get last error message for the most recent function callphp grapheme 函数 function to extract a sequence of default grapheme clusters from a text buffer which must be encoded in utf 8php gupnp 函数 start hostingphp gupnp 函数 set device callback functionphp gupnp 函数 start main loopphp firebird/interbase 函数 register a callback function to be called when events are postedphp ldap 函数 set a callback function to do re binds on referral chasingphp newt 函数 set a callback function which gets invoked when user presses the suspend keyphp output control 函数 在ob start中使用的用来压缩输出缓冲区中内容的回调函数。ob start callback function to gzip output bufferphp tidy 函数 ob start callback function to repair the bufferphp oci8 函数 register a user defined callback function for oracle database tafphp oci8 函数 unregister a user defined callback function for oracle database tafphp apd 函数 renames orig name to new name in the global function tablephp statistic 函数 probability density function of the laplace distributionphp stream 函数 a callback function for the notification context parameterphp swoole 函数 add callback function to the next event loopphp swoole 函数 trigger a one time callback function in the futurephp swoole 函数 check if a timer callback function is existedphp swoole 函数 trigger a timer tick callback function by time intervalphp swoole event add a callback function to the next event loop.
关注编程学问公众号