title: Show HTML and PHP code in one line
body: <p>I want to show this sentence:</p>
  
  <pre><code>?&gt;
  &lt;h2&gt;Date &lt;?php echo "$day"."/"."$month"."/"."$year"."&lt;br&gt;"; ?&gt;&lt;/h2&gt;
  &lt;?php
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>echo '&lt;h2&gt;Date '$day'.'/'.'$month'.'/'.'$year'.'&lt;br&gt;' &lt;/h2&gt;';
  echo '&lt;h2&gt;Date &lt;?php echo \"$day/\".\"/\".\"$month\".\"/\".\"$year\".\"&lt;br&gt;\"; ?&gt;&lt;/h2&gt;';
  </code></pre>
  
  <p>Without success.</p>
  
  <p>If a line contains both HTML and PHP code, what is the proper format to display it?</p>