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.
list()is something like the opposite ofarray()and its a language construct. Its especially important to know, that even if its listed in the functions reference of the manual (list()), it isn’t, because no function is writeable.