Scope of array
Do array elements have a default scope? I thought they might be global because in one of my functions I could only access them through $GLOBALS['array']['key']. But if they were global, I would expect to be able to access the array elements within the function by simply using $array['key'] - but this didn't work.
So what's the actual scope of an array element?
|