Buffering output : ob_start « Utility Function « PHP






Buffering output

 
<?php ob_start(); ?>

I haven't decided if I want to send a cookie yet.

<?php setcookie('heron','great blue'); ?>

Yes, sending that cookie was the right decision.

<?php ob_end_flush(); ?>
  
  








Related examples in the same category

1.Using a callback with ob_start()