How can PHP be used to extract values from a URL parameter?
To extract values from a URL parameter in PHP, you can use the $_GET superglobal array. This array contains key-value pairs of parameters passed in the URL. You can access the value of a specific parameter by using its key in the $_GET array.
// Example URL: http://example.com/page.php?id=123
// Get the value of the 'id' parameter from the URL
$id = $_GET['id'];
// Output the value of the 'id' parameter
echo $id;