Forum und email

ob_tidyhandler

(PHP 5)

ob_tidyhandler — Fonction de callback ob_start pour réparer le buffer

Description

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

ob_tidyhandler() est prévue pour être utilisée en tant que fonction de callback avec ob_start() afin de réparer le buffer.

Example#1 Exemple avec ob_tidyhandler()

<?php
ob_start
('ob_tidyhandler');

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

L'exemple ci-dessus va afficher :

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

Voir aussi ob_start().