title: PHP - Concatenate if statement?
body: <p>I want to concatenate in the middle of an echo to write an if statement, is this possible? Here is what I have.</p>
  
  <pre><code>echo "&lt;li class='".if ($_GET["p"] == "home") { echo "active"; }."'&gt;&lt;a href='#'&gt;Home&lt;/a&gt;        &lt;/li&gt;";
  </code></pre>