RE: [PHP] Array difficulty
- From: robert@xxxxxxxxxxxxx (Robert Cummings)
- Date: Tue, 31 Jul 2007 09:59:19 -0400
On Tue, 2007-07-31 at 14:43 +0100, Chris Boget wrote:
At this point, $result would be equal to "uppercase". I feel
like this is a really kludgey way to accomplish this. Is there
a better way?
Couldn't you just do
arsort($chance);
$lastItem = chance[( count( $chance ) - 1 )];
$lastItem = end( $chance );
Cheers,
Rob.
--
............................................................
SwarmBuy.com - http://www.swarmbuy.com
Leveraging the buying power of the masses!
............................................................
.
- References:
- Array difficulty
- From: Carlton Whitehead
- Array difficulty
- Prev by Date: Re: [PHP] Array difficulty
- Next by Date: Re: [PHP] Includes eating up my time
- Previous by thread: Re: [PHP] Array difficulty
- Next by thread: Email a php webpage
- Index(es):