For example:
$array = array('f', 'b');
assign($foo, $bar, $array);
// now $foo = 'f' and $bar = 'b'
Does something like this exist in the PHP language? I have never needed something like this before and cannot find anything that will do this.
I just wanted to make sure before I write the function myself - I don't want to write something that already exists within the language.
register_globalsbut regardless of that I would strongly advise you not to do that. It makes it superbly harder to debug, and open all sorts of doors for hacking