PHP ob_clean() Functie
❮ PHP-uitvoerbesturingsfuncties
Voorbeeld
Verwijder wat uitvoer voordat het naar de browser kan worden verzonden:
<?php
ob_start();
echo "This output will not be sent to the
browser";
ob_clean();
echo "This output will be sent to the browser";
ob_end_flush();
?>
Definitie en gebruik
De ob_clean()
functie verwijdert alle inhoud van de bovenste uitvoerbuffer, zodat deze niet naar de browser wordt gestuurd.
Syntaxis
ob_clean();
Technische details
PHP-versie: | 4.2 |
---|
❮ PHP-uitvoerbesturingsfuncties