Posted by Mattias Thorslund on 04/08/05 03:19
Chris W. Parker wrote: >While looking through the array functions I saw www.php.net/array_keys >and thought of: > ><?php > > $keys = array_keys($object_array); > > $first_key = $keys[0]; > >?> > > I wonder if that will work, when the first element has the key 3... ? This might work better: $keys = array_keys($object_array); $first_key = reset($keys); /Mattias -- More views at http://www.thorslund.us
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming