php: cannot modify array in function?
<p>so I am trying to modify an array by adding key and value in a function <code>modArr</code>; I expect the var dump to show the added items but I get NULL. What step am I missing here?</p>

<pre><code>&lt;?php

$arr1 = array();

modArr($arr1);
$arr1['test'] = 'test';
var_dump($arr);

function modArr($arr){
$arr['item1'] = "value1";
$arr['item2'] = "value2";
return;
}
</code></pre>
