What is the significance of using "?" and "&" in URLs when passing multiple variables in PHP?

When passing multiple variables in a URL in PHP, the question mark "?" is used to separate the base URL from the query parameters, and the ampersand "&" is used to separate multiple query parameters. This allows you to pass multiple variables to a PHP script and retrieve them using the $_GET superglobal array.

// Example URL: example.com/script.php?var1=value1&var2=value2

// Retrieving the variables in script.php
$var1 = $_GET['var1']; // value1
$var2 = $_GET['var2']; // value2