PHP global or $GLOBALS

Attirecut

New Member
Is there a best practice / recommendation when I want to use a variable declared outside of a function when it comes to using:[*]\[code\]global $myVar\[/code\][*]\[code\]$GLOBALS['myVar']\[/code\]Thank you.
 
Back
Top