title: Different ways for passing URL parameters in PHP?
body: <p>I would like to know some other methods for passing parameters through the URL in PHP. I'm aware one could do:</p>
  
  <pre><code>mydomain.com/page.php?var1=abc?var2=def
  </code></pre>
  
  <p>and so on. But how could I do:</p>
  
  <pre><code>mydomain.com/var1/var2
  </code></pre>
  
  <p>I know the above code does not specify what the current page would be, but one of the variable would be assigned to the page (And the user would be viewing index.php and I would use "includes", I don't need help on this part)</p>
  
  <p>Cheers</p>