title: Using rtrim on DOCUMENT_ROOT give unexpected result
body: <p>I am trying to remove any trailing slash from <code>DOCUMENT_ROOT</code></p>
  
  <pre><code>rtrim($_SERVER['DOCUMENT_ROOT'], '/\\')
  </code></pre>
  
  <p>But its adding <code>%5C</code>  after using <code>rtrim</code>:</p>
  
  <pre><code>E:%5Cwamp%5Cwww%5Ctestfolder
  </code></pre>
  
  <p>Also I replace all slash with <code>DIRECTORY_SEPARATOR</code> before using <code>rtrim</code>, but same thing happen.</p>
  
  <p>Please tell me why its happening ? </p>