日期:2014-05-16 浏览次数:20457 次
<?php function demo(&$a, &$b) { $a =& $b; } $a = 1; $b = 2; demo($a, $b); $b = 3; print $a; ?> 详细出处参考:http://www.jb51.net/article/22508.htm
function demo(&$x, &$y) { $x =& $y; } $a = 1; $b = 2; demo($a, $b); print $a;