At 18:21 11/5/2001, Brian Foddy wrote:
>[EMAIL PROTECTED] wrote:
> >
> > On 11 May 2001, Stig Sæther Bakken wrote:
> >
> > > Why not have both numerical and descriptive indices?  Backwards
> > > compatible, slightly bloatish, but not really a problem.
> >
> > it's already implemented this way now (it was added last night) AFAIK
> >
> > Derick Rethans
> >
>
>You are creating the same array indexed both by a
>integer and a string?  I'm curious how this is done.  I might
>have a good use for this trick.

No special tricks needed;  PHP's arrays support both numeric and string 
indices ever since PHP 3.0 (at least).  You can simply add both types of 
indices to the same array without having to do anything special.


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to