La funzione move riceve come parametro un array che dovrebbe essere modificato invece dopo l'esecuzione del codice seguente l'array rimane immutato. Perchè?
Codice:public function move ($x, $y, $board) {
$board[$y][$x]=new B();
}
$b=array();
for($i=0;$i<3;$i++)
for($j=0;$j<3;$j++)
$b[$i][$j]=new A();
$b[1][1]=new B();
$b[1][1]->move(2,2,$b);
for($i=0;$i<3;$i++)
for($j=0;$j<3;$j++)
echo $b[$i][$j];
