Re: Multidimensional Array manipluation...

From: Date: Thu, 02 Jan 2003 17:30:43 +0000
Subject: Re: Multidimensional Array manipluation...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129965@lists.php.net to get a copy of this message
> >$test["0"]["hey"] = 1; > >$test["1"]["hi"] = 2; > >$test["2"]["hello"] = 3; > > I want to update $test["0"]["hey"] and set it as 1+1; If you just want to increment the value: $test["0"]["hey"]++; > Also is there any idea on how can we count() the values > in a multi dimensional arrays... The function array_count_values() might give you what you want. What are you wanting to count exactly? A good reference for you online is: http://www.php.net/manual/en/ref.array.php Chris

« previous php.general (#129965) next »