Concept Flow - Global namespace access
Start script
Define global variable
Enter function
Access global variable using $GLOBALS or global keyword
Modify or read global variable
Exit function
Use global variable outside function
End script
The script defines a global variable, then inside a function accesses it using special ways, modifies or reads it, then continues outside the function.