View Single Post
Old 01-27-2013, 11:18 AM   PM User | #3
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
You should nest two foreach.

Like this:

PHP Code:
foreach($mainCounters as $mainCounter) {
//$mainCounter will have the array in userID so...

foreach($mainCounter as $key =>$value)
{

//First Iteration: $key = 'itemOwnerCommentCount'; $value = 0
//Second Iteration: $key = 'notItemOwnerCommentCount'; $value = 0;

}




__________________
For professional Hosting and Web design.....


NetEssentials.co.uk

Last edited by Redcoder; 01-27-2013 at 11:41 AM..
Redcoder is offline   Reply With Quote