📜  php 指针函数 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:28.935000             🧑  作者: Mango

代码示例2
function plus_by_reference( &$param ) {
      // what ever you do, will affect the actual parameter outside the function
      $param++;
}

$a=2;
plus_by_reference( $a );
echo $a;
// output is 3