title: PHP - Checking for IE, understanding $_SERVER['HTTP_USER_AGENT']
body: <p>I know some very light PHP and decided to start from the ground up and was looking at php.net
  <a href="http://php.net/manual/en/tutorial.useful.php" rel="nofollow">http://php.net/manual/en/tutorial.useful.php</a>
  On this page, it mentions in an example how to check for IE.</p>
  
  <pre><code>&lt;?php
  if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
      echo 'You are using Internet Explorer.&lt;br /&gt;';
  }
  ?&gt;
  </code></pre>
  
  <p>I have a very small test page made up that I'm going through the section here with and this is what I have written down...</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;PHP startup testing page&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
  &lt;?php 
          echo "&lt;p&gt;Hello World&lt;/p&gt;";
          echo $_SERVER['HTTP_USER_AGENT']; //outputs the kind of browser the visitor is using.
          if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
              echo 'You are using Internet Explorer.&lt;br /&gt;';
          }
  ?&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I don't understand is why when I load this into Internet Explorer, the output onto my screen is <em>Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko</em> and the if statement thus returns nothing. Is there something very basic I'm not getting?</p>