title: PHP if/else without echo
body: <p>How do I replace <code>echo</code> with proper html codes? Since there will be hundreds of html codes, using echo doesn't make sense.</p>
  
  <pre><code>&lt;?php
  if ($this-&gt;item-&gt;catid == 9) { 
      echo "yes, it exists"; 
      } 
      else { 
      echo "no, it don't exist"; 
      }
  ?&gt;
  </code></pre>
  
  <p>I'm new to PHP.</p>