What is the scope of global variables in PHP functions?

Global variables in PHP functions refer to variables that are defined outside of the function but can be accessed and modified within the function. To use global variables within a function in PHP, you need to use the `global` keyword to explicitly declare the variable as global within the function. This allows you to access and modify the global variable within the function's scope.

$globalVar = 10;

function myFunction() {
    global $globalVar;
    echo $globalVar;
}

myFunction(); // Output: 10