Here’s an example of what I’m looking for:
function randomEvent($var){
global ${$var.'_edit'};
${$var.'_edit'} = array( "Key1" => 1, "Key2" => 2, "Key3" => 3);
}
randomEvent($apple);
echo $apple_edit["Key1"];
Basically I want to create a global array from within a function, but give it a dynamic name based off of variables passed to the function from the initial call. Any help is greatly appreciated. Thx.