I am trying to update the reviewCount on each array to 1. I am confused why my foreach loop will not update it. Any help would be greatly appreciated
$output:
Array(
[1] => Array(
[category] => Category 1
[country] => USA
[date] => 2012-04-07 23:50:49
[name] => Product 1
[reviewCount] =>
)
[2] => Array(
[category] => Category 1
[country] => USA
[date] => 2012-04-07 23:50:49
[name] => Product 1
[reviewCount] =>
)
Code:
foreach ($output as $row) {
$row['reviewCount'] = 1;
}