Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Array to simple variables assignment
- Bob Stearns
July 25, 2006, 10:29 pm
rate this thread
assignment to $a, $b and $c something like ($a, $b, $c) = $array? The
given sytax doesn't work nor does [$a, $b, $c] = $array. This leads me
to believe in the conflation theory. If there is a syntax for this,
could you please send me a manual reference for it?
Re: Array to simple variables assignment
Yes, you're closer to Perl with the first example, which is almost valid in
that language, except it'd be @array not $array.
PHP requires an extra word to do the same thing; see http://uk2.php.net/list
Andy Hassall :: firstname.lastname@example.org :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool