When you define a variable in global scope in PHP, you can sometimes have difficulty acccessing the variable from within another function call, if not explicity passe. Luckily, in PHP, the $GLOBALS variable holds all of our globally defined variables: $myVar = 123; myFunction(); function myFunction() { echo $GLOBALS["myVar"]; //123 } That said, the usual [...]
Read More