📅  最后修改于: 2022-03-11 14:54:17.635000             🧑  作者: Mango
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