php 按引用传递的使用
摘要:
测试1function add($a){ $a+=1; echo $a."<hr>";}$a = 1;add($a);echo $a输出:11测试2function add($a){ $a+=1; echo $a."<hr>";}$a = 1;add(& $a);echo $a输出虽然达到了效果,但是会报错Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify th 阅读全文
posted @ 2012-02-13 22:38 cn三少<script></script> 阅读(185) 评论(0) 推荐(0) 编辑