haidong 发表于 2010-2-24 13:38:59

PHP语言参考 - 引用的解释

<DIV class=titlepage><DIV><DIV><H1><A name=language.references></A>第 21 章 引用的解释</H1></DIV></DIV></DIV><H2>目录</H2><DL><DT><A href="http://www.php.net/manual/zh/language.references.php#language.references.whatare"><U><FONT color=#000099>引用是什么</FONT></U></A><DT><A href="http://www.php.net/manual/zh/language.references.whatdo.php"><U><FONT color=#000099>引用做什么</FONT></U></A><DT><A href="http://www.php.net/manual/zh/language.references.arent.php"><U><FONT color=#000099>引用不是什么</FONT></U></A><DT><A href="http://www.php.net/manual/zh/language.references.pass.php"><U><FONT color=#000099>引用传递</FONT></U></A><DT><A href="http://www.php.net/manual/zh/language.references.return.php"><U><FONT color=#000099>引用返回</FONT></U></A><DT><A href="http://www.php.net/manual/zh/language.references.unset.php"><U><FONT color=#000099>取消引用</FONT></U></A><DT><A href="http://www.php.net/manual/zh/language.references.spot.php"><U><FONT color=#000099>引用定位</FONT></U></A></DT></DL><DIV class=sect1 lang=zh-cn><DIV class=titlepage><DIV><DIV><H1><A name=language.references.whatare></A>引用是什么</H1></DIV></DIV></DIV><P>在 PHP 中引用意味着用不同的名字访问同一个变量内容。这并不像 C 的指针,替代的是,引用是符号表别名。注意在 PHP 中,变量名和变量内容是不一样的,因此同样的内容可以有不同的名字。最接近的比喻是 Unix 的文件名和文件本身――变量名是目录条目,而变量内容则是文件本身。引用可以被看作是 Unix 文件系统中的 hardlink。 </P></DIV>
页: [1]
查看完整版本: PHP语言参考 - 引用的解释