PHP ob_clean() Fungsi
Contoh
Hapus beberapa keluaran sebelum dapat dikirim ke browser:
<?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();
?>
Definisi dan Penggunaan
Fungsi ini ob_clean()
menghapus semua konten buffer output teratas, mencegahnya dikirim ke browser.
Sintaksis
ob_clean();
Detail Teknis
Versi PHP: | 4.2 |
---|
Fungsi Kontrol Output PHP