> >   $foo = array('a' => 'apple', 'b' => 'banana');
> >   
> >   // Notice - Undefined offset:  1
> >   // Notice - Undefined offset:  0
> >   list($a,$b) = $foo; 
> 
> Isn't this line should be
> 
> list($a, $b) = array_keys($foo);
> or
> list($a, $b) = array_values($foo);

Sure that works.

> I might miss you point, since it seems we are
> going to make these feature requests bogus.

Why?  list() working with associative arrays 
seems bogus to you?  Please be specific as to 
why this is bad.  Why is requiring keys indices 
to begin at 0 good or necessary? I can't think 
of a case where this will be bad for a php user.
Imho it's intuitive.

Sure it's not a major deal and more pressing 
needs exist but hey, what can I say. :)

Regards,
Philip


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to