PHP Update Array Value Inside Foreach Looping

$arr = array();
$arr[] = array(
    "id" => 1,
    "name" => "John",
    "money" => 20,
);
$arr[] = array(
    "id" => 2,
    "name" => "Doe",
    "money" => 40,
);

foreach ($arr as &$row) {
    $row['money'] = $row['money'] + 150;
}

Reference:
https://stackoverflow.com/a/10121508/9928951