|
Posted by Rik Wasmus on 11/16/07 16:21
On Fri, 16 Nov 2007 14:00:23 +0100, Krustov <me@privacy.net> wrote:
> <comp.lang.php>
> <Rik Wasmus>
> <Fri, 16 Nov 2007 00:19:06 +0100>
> <op.t1uwd4mo5bnjuv@metallium.lan>
>
>> > I want to get the first record and last record in an array. I don't
>> > 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:
>> >
>> > 10
>> > 11
>> > 12
>> > 13
>> > 14
>> > 15
>> > 16
>> >
>> > And I want to grab the first and last items in the array, so in this
>> > case, 10 and 16.
>>
>> RTFM.....
...and the answer was below that line..
> Yes - how dare a user ask for php help on a php newsgroup .
What?
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.
--
Rik Wasmus
Navigation:
[Reply to this message]
|