Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- get first and last items in array
November 15, 2007, 11:15 pm
rate this thread
want any other records, but am not finding how to do it. What I am
doing is pulling out information from a database, where the sql query
would have a result much like this:
And I want to grab the first and last items in the array, so in this
case, 10 and 16.
Any advice would be appreciated.
Re: get first and last items in array
..and the answer was below that line..
I stated: Read The Fine Manual, for instane, when working with arrays, one
would think to look at the array functions, <http://nl2.php.net/array .
Try to find to find the text 'first' and 'last' on that page (two terms
the op literally used), and he'd have the answer.
Stating this could be easily found in the manual, and encouraging posters
to use it, helps them more in the long run then just easy answers.
Please don't toppost.