Re: AW: AW: [PHP-DEV] arrays
| From: | (Stig Sæther Bakken) | Date: | Thu, 17 May 2001 00:41:39 +0000 |
| Subject: | Re: AW: AW: [PHP-DEV] arrays | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-55556@lists.php.net to get a copy of this message | ||
[Zeev Suraski <zeev@zend.com>]
> At 13:34 16/5/2001, Stig Sæther Bakken wrote:
> >Acknowledged. But IMO the arrays will be either clearly continous or
> >clearly associative/non-continous in 99.2% of the cases (Zeev
> >statistics applied).
>
> I never claim to be accurate, I usually say 99% :)
I don't either, my random generator just has a higher resolution. :-)
> > I think it's fine to keep treating an array as
> >non-continous if there has ever been holes or string keys in it.
>
> I actually think that arrays with both numeric and associative indices
> are quite common. Lots of apps I've seen use them, as well as some of
> PHP's internal functions.
You're probably right. But the question is really how often arrays
change between being continous and associative/mixed/non-continous?
- Stig
--
Stig Sæther Bakken <ssb@fast.no>
Fast Search & Transfer ASA, Trondheim, Norway