Codice PHP:
$reductions[$roomInfo['id']][$treatmentInfo['treatment_type']][] =
array("treatment_type" =>$treatmentInfo['treatment_type'],
"room_id" => $roomInfo['id'],
"name" => $reductionInfo['ReductionsType']['name'],
"price" => $this->PriceReduction($reductionInfo, $base_price),
"typology" => $reductionInfo['ReductionsType']['typology'],
"required" => $reductionInfo['ReductionsType']['required']);
Questo è l'array. In pratica devo fare che ogni volta che eseguo questo codice l'indice "price" deve sommarsi con il precedente array che ha gli altri valori uguali.
Invece di un => avrei bisogno di un +=>