Re: Array/string offset [] vs. {} syntax

From: Date: Sat, 26 Aug 2000 18:04:51 +0000
Subject: Re: Array/string offset [] vs. {} syntax
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-30778@lists.php.net to get a copy of this message
Andi Gutmans writes: > >Is this what is expected, and should it be going in the manual? > > To be honest {} should only work for string offsets but we haven't gotten > around to changing this yet. I made the change in Zend necessary to support > this but never got around to fully implementing it. > I will try and address this in 4.0.3. DON'T use {} to index arrays. It will > not work in future versions. As for {} support within encapsulated strings. > It will work but as I said I just put in the infra-structure but haven't > implemented it yet. I thought no one had noticed :) > > Andi :) OK, I'll leave it alone for now. Thanks for the update, Torben -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.dev (#30778) next »