Re: retrieve data from multidimensional array

From: Date: Sat, 20 Jul 2002 09:33:32 +0000
Subject: Re: retrieve data from multidimensional array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108646@lists.php.net to get a copy of this message
On Saturday 20 July 2002 15:49, rdkurth@starband.net wrote: > I have a multidimensional array. How can I search and retrieve all data > that is like $value from it. > the array looks like this $multi=array($row_0,$row_1); I want to > retrieve all data where $value matches $row_1 and display the data on > the screen. I know that array_search and in_array will tell me that > the data exist but I what to retrieve it. Doesn't array_search() do what you want? Presumably if you're searching for something you know what you're searching for then all you need to know is where it is found. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Sacred cows make great hamburgers. */

« previous php.general (#108646) next »