|
Posted by Bob Stearns on 07/25/06 23:01
Andy Hassall wrote:
> 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
>
>
Thank you.
Navigation:
[Reply to this message]
|