Assuming I have the following URL on a webpage, how I can I utilize the explode() function to give me only the ID, and not the rest of the URL that follows the ID?
file.php?id=12345&foo=bar
I can get the ID, but there's always the following "&foo=bar".
Thanks.
$_GET['id']explode()(or something similar). I'm lifting the URL directly from the webpage using cURL.