关于&$地址传递的练习
摘要:php默认为传值传递: 既:$a=10;$b=$a; //$b为10$a=+10; //$a 为20 echo $a.'和'.$b; # $a is 20 and $b is 10! 要是想变为地址传递需要加&,既:$a=10;$b=&$a; $a=+10; echo $a.'和'.$b; # $a
阅读全文
posted @ 2017-04-09 21:32
posted @ 2017-04-09 21:32
posted @ 2014-11-18 18:24
posted @ 2014-11-18 00:40