I've got a large json of data that needs to be maniputlated. I'm trying to add two key value pairs to each array inside of a foreach loop. It's works inside the loop but doesn't seem to save the array values outside of the loop.
This is what I've tried but it just doesn't seem to be working.
foreach ($data as $array) {
$array['value1'] = 0;
$array['value2'] = 0;
}