Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Output Buffering Fourth
<?php
ob_start();
echo "How are you and where do you live? ";
echo "I live in Yangon";
$out1 = ob_get_contents();
echo "How do you do?";
echo "where do you live";
$out2 = ob_get_contents();
ob_end_clean();
var_dump($out1);
var_dump($out2);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment