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 grapheme 函数 function to extract a sequence of default grapheme clusters from a text buffer which must be encoded in utf 8php gupnp 函数 set device callback functionphp gupnp 函数 sets up callback for variable change notificationphp 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 ncurses 函数 start using standout attributephp 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 posix 函数 retrieve the error number set by the last posix function that failedphp ps 函数 start a new patternphp statistic 函数 probability density function of the exponential 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 xmlwriter 函数 create start cdata tag
关注编程学问公众号