title: How can I get parameters from a URL string?
body: <p>I have an HTML form field <code>$_POST[&quot;url&quot;]</code>, having some URL strings as the value.</p>
  <p>Example values are:</p>
  <pre>
  https://example.com/test/1234?email=xyz@test.com
  https://example.com/test/1234?basic=2&email=xyz2@test.com
  https://example.com/test/1234?email=xyz3@test.com
  https://example.com/test/1234?email=xyz4@test.com&testin=123
  https://example.com/test/the-page-here/1234?someurl=key&email=xyz5@test.com
  </pre>
  <p>etc.</p>
  <p>How can I get only the <code>email</code> parameter from these URLs/values?</p>
  <p>Please note that I am not getting these strings from the browser address bar.</p>