Re: array question
| From: | Jason Wong | Date: | Fri, 17 May 2002 11:05:33 +0000 |
| Subject: | Re: array question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98041@lists.php.net to get a copy of this message | ||
On Friday 17 May 2002 18:42, Josh Edwards wrote:
> I have an array which I use a loop to add numbers to different elements in
> the array. I can extract the highest no
> which in this case is 48. ie ([22 ] => 48 [23 ] => 2 [12 ] => 22 [14 ] =>
> 5 )
>
> Using this highest no (48 in this instance), how do I get the position or
> [element No] that matches the highest no.
RTFM -> array_search()
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
interrupt configuration error
*/