What is the correct syntax for setting a global variable in a URI using $_GET in PHP?

When using $_GET in PHP to retrieve variables from a URI, you can set a global variable by assigning the value of $_GET to a new variable. This allows you to use the variable throughout your script without having to repeatedly access the $_GET array. To set a global variable using $_GET, simply assign the value of $_GET to a new variable using the desired key.

// Set a global variable using $_GET
$myGlobalVar = $_GET['myVar'];