Answers for "php clear echo messages"

PHP
0

php clear echo messages

<?php

ob_start();
echo 'a';
print 'b';

// some statement that removes all printed/echoed items
ob_end_clean();

echo 'c';

// the final output is equal to 'c', not 'abc'

?>
// https://stackoverflow.com/questions/1057986/how-to-clear-previously-echoed-items-in-php
Posted by: Guest on June-15-2021

Browse Popular Code Answers by Language