|
Posted by Andy Hassall on 07/25/06 22:57
On Tue, 25 Jul 2006 18:29:52 -0400, Bob Stearns <rstearns1241@charter.net>
wrote:
>Am I conflating PHP with another language (PERL maybe?) or can you do an
>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?
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 :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|