title: How do I extract query parameters from a URL string in PHP?
body: <p>Users can input URLs using a HTML form on my website, so they might enter something like this: <a href="http://www.example.com?test=123&amp;random=abc" rel="noreferrer">http://www.example.com?test=123&amp;random=abc</a>, it can be anything. I need to extract the value of a certain query parameter, in this case 'test' (the value 123). Is there a way to do this?</p>