Remove a query parameter from a URL

In order to move forward in an OAuth implementation I'm making, I need to remove the hmac parameter from the following example URL:

http://localhost/generate_token.php?code=6a94694acf0339e9eb8068d8f4718eea&hmac=710205c27e7f780b0cd7ee58146388094be1b9e4762e3752840d1de21deeac5d&shop=johns-apparel.myshopify.com&timestamp=1516399193

Is there a function or something close that can get me to do so? Thank you!

1 reply