关于函数引用传递!
下面的2段代码结果一样,但是有什么不同呢?
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $string = 'string'; function change($str) { $str = 'str'; } change(&$string); echo $string; ?> <?php $string = 'string'; function change(&$str) { $str = 'str'; } change($string); echo $string; ?>