Re: Search array index on regex???

From: Date: Thu, 24 Apr 2003 09:58:44 +0000
Subject: Re: Search array index on regex???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145131@lists.php.net to get a copy of this message
www.php.net/array_walk ? ----- Original Message ----- From: "Shawn McKenzie" <nospam@mckenzies.net> To: <php-general@lists.php.net> Sent: Thursday, April 24, 2003 5:13 AM Subject: [PHP] Search array index on regex??? > Example: > > I need to see if one of the indices in the array is contained within > $_SERVER['QUERY_STRING'] and if so, return the array. Any help??? > > I'm thinking maybe an array function that uses a callbak? What would be > quicker than looping through the array? > > Example: > > $thearray = array ( > 'cat=5&action=add' => > array ( > 'thing1' => 'onefish', > 'thing2' => 'twofish', > ) > 'cat=5&action=del' => > array ( > 'thing1' => 'redfish', > 'thing2' => 'bluefish', > ) > ); > > Thanks! > Shawn > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#145131) next »