Così sto cercando di modificare un array aggiungendo chiave e il valore di una funzione modArr
; Prevedo che var dump mostri gli elementi aggiunti ma ottengo NULL. Che passo mi manca qui?php: non è possibile modificare la matrice in funzione?
<?php
$arr1 = array();
modArr($arr1);
$arr1['test'] = 'test';
var_dump($arr);
function modArr($arr){
$arr['item1'] = "value1";
$arr['item2'] = "value2";
return;
}