getting first element of an array

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm using PHP 4.4.4.  How do I get the first element of an associative
array?  I dont' want to use array_pop because I don't want to change
the contents of the array, I simply want to pick a sample element of
an array.  So, I suppose it doesn't have to be the first element.

Thanks - Dave

Re: getting first element of an array


Quoted text here. Click to load it



Site Timeline