title: How do you hide specific content if $page = name
body: <p>How do you hide specific content if $page = name</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;?php
  if ($page=='special'){
      echo "&lt;div&gt;hello&lt;/div&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>The above example will show the div if the $page = special. How do I do the opposite of this, hide a specific div if the $page = something?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>To be more specific I would like to hide my main navigation  when on the $clients page.</p>
  
  <p>Do I wrap the <code>&lt;nav&gt;</code> with PHP or is it possible to hide a specific div if I give it a name, for example. <code>&lt;nav id="clients"&gt;</code> the PHP would be: if <code>$clients</code> then hide the id named clients.</p>
  
  <p>I should also mention that the content in question has <code>&lt;?php echo $url; ?&gt;</code> and the likes contained within it.</p>
  
  <p>This is the exact content I would like to hide on $clients pages.</p>
  
  <pre><code>&lt;nav&gt;
  &lt;ul&gt;
  &lt;li&gt;&lt;a &lt;?php if ($page=="work") echo "class=\"current\"" ?&gt; href="&lt;?php echo $url; ?&gt;" title="Work"&gt;Work&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a &lt;?php if ($page=="profile") echo "class=\"current\"" ?&gt; href="&lt;?php echo $url; ?&gt;profile/" title="Profile"&gt;Profile&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a &lt;?php if ($page=="approach") echo "class=\"current\"" ?&gt; href="&lt;?php echo $url; ?&gt;approach/" title="Approach"&gt;Approach&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a &lt;?php if ($page=="contact") echo "class=\"current\"" ?&gt; href="&lt;?php echo $url; ?&gt;contact/" title="Contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>