On Feb 4, 2007, at 8:52 PM, Richard Lynch wrote:

Ewwwwwwww!

So now we have an invisible operator with a magical symbol '[' which
*sometimes* means create an array, but *sometimes* means to
de-construct an array into individual variables?

That's just disgusting, imho.

-1 !!!

The way I view [] is that it creates an array "context". When the context is an RHS, it instantiates an array. When it's an LHS, the context deconstructs the array.

-Andrei

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to