php - Setting up global array (outwith class)
I have a few classes (in separate files, eg /classes/admin.class.php), and I'd like them to have access to a global array, which is loaded in the main file (index.php).
I want the contents of the global array to be
How do I do this? I've read up about it, but I simply cannot get my head around it.
$GLOBALS seems to work, but is that not an outdated version (like
Thanks in advance