Array assign

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello all,
I have a brain fart and can't remember how to do an array assignment to a
bunch of variable:

function Whatever () {
    return array($a, $b, $c);

($MA, $PB, $QC)=Whatever();

What's the proper syntax of the last line ?!?
Guillaume Dargaud

Re: Array assign

Of course, 2s after posting I figured out it's:
list($MA, $PB, $QC)=Whatever();
Sorry for wasting your time.
Guillaume Dargaud

Site Timeline