title: PHP script tags
body: <p>Why does this if statement have each of its conditionals wrapped in PHP tags?</p>
  
  <pre><code>  &lt;?php if(!is_null($sel_subject)) { //subject selected? ?&gt;
       &lt;h2&gt;&lt;?php echo $sel_subject["menu_name"]; ?&gt;&lt;/h2&gt;
    &lt;?php } elseif (!is_null($sel_page)) { //page selected? ?&gt;
       &lt;h2&gt;&lt;?php echo $sel_page["menu_name"]; ?&gt;&lt;/h2&gt;
    &lt;?php  } else { // nothing selected ?&gt;
       &lt;h2&gt;Select a subject or a page to edit&lt;/h2&gt;
    &lt;?php } ?&gt;  
  </code></pre>