title: if(in_array()) not working in Wordpress
body: <p>I am using Wordpress latest version and I this piece of code inside my header.php:</p>
  
  <pre><code>&lt;?php
      $url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
      $slugMenu = array (
          'planes',
          'two-wings',
          'four-wings'
      );
      if (in_array($url, $slugMenu)) {
       echo "
          &lt;style&gt;
              .planes,
              .two-wings,
              .four-wings { background:#101010; }
          &lt;/style&gt;
          ";
      }
      else {
          echo _("not found");
      }
  ?&gt;
  </code></pre>
  
  <p>The code output should be like this:</p>
  
  <ul>
  <li>Check to see if the URL contains one of the elements in declared array</li>
  <li>If it does, then echo inside  the  properties and values</li>
  </ul>
  
  <p>Well, for some reason, just doesn't work. All I get is else " not found" instead of actually having the <code>&lt;style&gt;</code> inside the <code>&lt;head&gt;</code>.</p>
  
  <p>The thing is that it was working on another project of mine based on same Wordpress. Am I doing something wrong here?</p>