Re: Array's
| From: | David Robley | Date: | Fri, 28 Jul 2000 03:39:37 +0000 |
| Subject: | Re: Array's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8704@lists.php.net to get a copy of this message | ||
On 27 Jul, Nathan Purciful wrote:
> Ok I have a array and i want to go to the next element in the list how do i
> get it to know what element it is
>
> My Array = Nathan,Dane,Purciful
>
> I need to seek to element 'Dane' how do i do this?
>
If you are looking for a specific value in an array element you could
traverse the array using each() and test each element until you find the
required value.
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA