title: request uri php: get first level
body: <p>If I had a url such as <strong><code>www.example.com/test/example/product.html</code></strong></p>
  
  <p>How would I be able to get just the test part(so the top level)</p>
  
  <p>I understand you would use <code>$_SERVER['REQUEST_URI']</code> and maybe <code>substr</code> or <code>trim</code></p>
  
  <p>But I am unsure of how to do this, thank you!</p>