Delete everything that has been echoed
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1057986/how-to-clear-previously-echoed-items-in-php">How to clear previously echoed items in PHP</a>  </p>
</blockquote>



<p>I have this code: </p>

<pre><code>&lt;?php

$var = true;
echo 'testing';

if ($var)
{
    echo 'Hey'; //The only thing that should appear.
}
?&gt;
</code></pre>

<p>How would I do to only make "Hey" appear on the site?</p>
