[UPHPU] grab named index by position

Richard K Miller richardkmiller at gmail.com
Wed Nov 25 22:22:43 MST 2009


> Is it possible to grab a named index by position? My test is  
> indicating not.
>
> Example:
>
> $things = array('food' => 'toast', 'location' => 'paris', 'mood' =>  
> 'happy');
>


Maybe something like this?

echo array_pop(array_slice($things, 1, 1));



More information about the UPHPU mailing list