<?php $a = 100; //声明变量a $b = &$a; //声明变量b,引用自变量a echo "$a <br />"; echo "$b <br />"; $a++; //变量a自增1 echo "$a <br />"; echo "$b <br />";//查看变量b,也增加了1,说明使用的是同一存储单元 ?> <?php $a = 20; $b = $a; $a = $a + 10; echo $a.' and '.$b; ?>
by: 发表于:2017-10-19 09:40:34 顶(0) | 踩(0) 回复
??
by: 发表于:2017-10-19 09:40:34 顶(0) | 踩(0) 回复
??
回复评论