<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
</head>
<body>
<?php
function &example($tmp=0)
{
return $tmp;
}
$str=&example("騰訊科技");
echo $str."<p>";
?>
</body>
</html>
這裏其實看不出來有啥大用途
取消引用
$num=789;
$math=&$num;
echo"\$math is :".$math."<br>";
unset($math);
echo"\$math is:".$math."<br>";
echo"\$num is:".$num;
只是取消了他們之間的關係,並沒有銷燬內容