title: Escaping forward slashes in an strpos() declaration
body: <p>I have the following code to set a variable, <code>$lang</code>, depending on what directory we are currently in:</p>
  
  <pre><code>$find_lang = $_SERVER['REQUEST_URI'];
  if (strpos('$find_lang', '/fr/') !== false) {
      $lang = "fr";
  }
  else if (strpos('$find_lang', '/de/') !== false) {
      $lang = "de";
  }
  else {
      $lang = "en";
  }
  echo $lang;
  parse_ini_file($lang . ".ini");
  </code></pre>
  
  <p>However, echoing <code>$lang</code> always gives me "en", even if I'm in <a href="http://example.com/fr/" rel="nofollow">http://example.com/fr/</a>. I believe it's because of the forward slashes around the directory, but I've tried escaping as follows: <code>//fr//</code> and <code>\/fr\/</code> but neither gives me a different answer.</p>
  
  <p>Any ideas?</p>