2

$x を 1 増やしたい:

$x = 1;

function addOne($x) {
  $x++;
  return $x;
}

$x = addOne($x);

参照でこれを行う方法はありreturn $xますaddOne($x)か?

4

2 に答える 2