PHPで、以前にエコーまたは印刷されたすべてのアイテムをクリア/削除する方法はありますか?
例えば:
<?php
echo 'a';
print 'b';
// some statement that removes all printed/echoed items
echo 'c';
// the final output should be equal to 'c', not 'abc'
?>
私のスクリプトはinclude関数を使用しています。含まれているファイルは何もエコーしないようになっています。誰か(例=ハッカー)が試みた場合に備えて、削除する方法が必要です。