<?php header("Content-Type:text/html;charset=gb2312"); function test1(&$a){ $a.="和小明"; } $b="这是小王"; test1($b); echo $b;//这是小王和小明 echo "<hr>"; function test2($a){ $a.="和小明"; } $c="这是小王"; test2($c); echo $c;//这是小王 ?>
posted on 2016-09-01 10:31 hgfs瑞 阅读(192) 评论(0) 编辑 收藏 举报