Multidimensional Array manipluation...

From: Date: Thu, 02 Jan 2003 16:45:37 +0000
Subject: Multidimensional Array manipluation...
Groups: php.general 
Request: Send a blank email to php-general+get-129958@lists.php.net to get a copy of this message
Hello ppl, I was trying to do something with an array...I guess you could see what I mean from the code below: $test[0] = "hey"; $test[1] = "hi"; $test[2] = "hello"; Now I want to hold various values in $test[0]["hey"] = "1" and $test[1]["hi"] = "2" and $test[2]["hello"] = "3" and then I want to use the function let's say in_array("hey", $test) and if it's found in the array I want to update the value in that array from 1 to 1+1 or anything... All of the above would be done dynamically from database, the above is just to get the Logic..I hope it's possible...I am keeping my fingers crossed... Thank You Best Regards, Dhaval _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

« previous php.general (#129958) next »