Re: [PHP-LANG] PHP/FI 2 legacy
[email protected] (Andi Gutmans)
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
At 10:20 27/11/00 -0600, Andrei Zmievski wrote:
>On Sat, 25 Nov 2000, Andi Gutmans wrote:
> > old_function() shouldn't be part of the language standard IMO.
> > I can't think of any other things, but we will probably come up with some
> > when we get into the more semantic descriptions. We might want to drop
> > $array[] support and $string[n] for string indexing (using $string{n}
> > instead although I still haven't implemented it).
>
>Why do you want to drop $array[]?
I guess it's OK :)
>I think $string{n} feature works, I've been using it lately.
It works but it acts exactly the way $string[n] works for now. What I will
want is for {} to be ONLY string specific and [] only array specific. The
first needs a patch from me and the second is an incompatibility so I doubt
we'll be changing this very soon.
So the result will be that $string{n} will convert $string to a string and
then always treat it as a string *even* if it's an array. It's the right
way to separate these.
If I didn't explain it well let me know.
Andi
---
Andi Gutmans <[email protected]>
http://www.zend.com/