What is the correct way to access superglobal variables in PHP?

Superglobal variables in PHP are accessible from any scope within a script without the need to use global keyword. To access superglobal variables, you simply need to use the $_ prefix followed by the variable name. For example, to access the POST superglobal variable, you would use $_POST.

// Example of accessing the POST superglobal variable
$myVar = $_POST['myVariable'];