(PHP 5)
ob_tidyhandler — Fonction de callback ob_start pour réparer le buffer
ob_tidyhandler() est prévue pour être utilisée en tant que fonction de callback avec ob_start() afin de réparer le buffer.
Exemple 2710. 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() .