FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Last element in an array?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Last element in an array? [message #169441 is a reply to message #169423] Mon, 13 September 2010 10:44 Go to previous messageGo to previous message
Piyush Gupta is currently offline  Piyush Gupta
Messages: 6
Registered: September 2010
Karma:
Junior Member
On Sep 12, 2:35 am, MikeB <mpbr...@gmail.com> wrote:
> On Sep 11, 2:32 pm, Thomas Mlynarczyk <tho...@mlynarczyk-webdesign.de>
> wrote:
>
>
>
>
>
>> MikeB schrieb:
>
>>> I know of the end() function to find the last element in an array [....]
>>> What I can't seem to find is a function that returns the key value of
>>> the last element.
>
>> function lastKey( $array )
>> {
>>      end( $array );
>>      return key( $array );
>
>> }
>
>> Greetings,
>> Thomas
>
>> --
>> Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
>> (Coluche)
>
> lol, OK, thanks.!  that's neat.

Hi ,

We at www.rntlabs.com [RNTLABS Software Solutions] have exciting
openings for the below

1/ PHP
2/ Designers
3/ Android
4/ iPhone
5/ QA
6/ ROR

Please apply at hr(at)rntlabs(dot)com ASAP .

Thanks

Piyush Gupta
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Something I have never seen before
Next Topic: getting amount of deleted rows from: $result=odbc_exec($conn, 'delete from....');
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 19:54:56 GMT 2024

Total time taken to generate the page: 0.03737 seconds