各配列の reviewCount を 1 に更新しようとしています。foreach ループで更新されない理由がわかりません。どんな助けでも大歓迎です
$出力:
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] =>
)
コード:
foreach ($output as $row) {
$row['reviewCount'] = 1;
}