title: PHP Easy way to combine PHP if statement with HTML
body: <p>This probably might be a silly question, but what I am trying to do is to make an if statement to do the following:</p>
  
  <pre><code>&lt;?php if ($_SESSION['login'] == true) { ?&gt;
  Display this HTML code (without converting it to PHP echos
  &lt;?php } else { ?&gt;
  Display this instead
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>Or will I need to echo, and in turn escape all the required characters in order to do what I am after.</p>
  
  <p>Thanks</p>