title: PHP Get a part from $string
body: <p>could you pls help me to parse the string?</p>
  
  <p>the string is: </p>
  
  <p><code>$str = 'http://test.al/admin/?plugin=pages&amp;act=delete&amp;file=test-page';</code></p>
  
  <p>It's dynamic and could contain more &amp;-symbols.</p>
  
  <p>I want to get everything but the part starting from "&amp;..."
  so the result should be :</p>
  
  <pre><code>http://boot.al/admin/?plugin=pages
  </code></pre>
  
  <p>need it to Go Back after deleting a file, to clear additional $_GET params.</p>
  
  <p>Thank you in advance!</p>