> so I'm taking that as double's are allowed, so the documentation
> need's to reflect that, since it currently says integers or strings
> are only allowed.
>
Sort of.Strings and Integers *ARE* the only truly valid indices for
arrays. Other types are loosely allowed using some basic translatio
On Sat, 19 Jun 2004, Curt Zirzow wrote:
> so I'm taking that as double's are allowed, so the documentation
> need's to reflect that, since it currently says integers or strings
> are only allowed.
Just make sure to mention that they are converted to integers first :)
Derick
--
PHP Internals -
* Thus wrote Sara Golemon:
> > Although a double value isn't a valid array index, it doesn't seem
> > to be consistent. I'm thinking that the code should yeild one of
> > two results:
> >
> > 1. Issue warning as with using objects or arrays as keys
> > 2. unset uses the str.val to retrieve the
Yep, and thanks Sara for fixing it.
At 11:34 AM 6/18/2004 -0700, Sara Golemon wrote:
> Although a double value isn't a valid array index, it doesn't seem
> to be consistent. I'm thinking that the code should yeild one of
> two results:
>
> 1. Issue warning as with using objects or arrays as keys
> Although a double value isn't a valid array index, it doesn't seem
> to be consistent. I'm thinking that the code should yeild one of
> two results:
>
> 1. Issue warning as with using objects or arrays as keys
> 2. unset uses the str.val to retrieve the proper index.
>
> Any thoughts on the