PHP: Update global reference variabele inside function scrope
I'm trying to change a global value that is currently a reference to another value. My current implementation doesn't work: $anna = array('Name' => "Anna"); $bella = array('Name' => "Bella"); $girl = &$anna; function change(){ global $girl, $bella; $girl =…