<?php
/**
* Created by PhpStorm.
*/
function &example($a = 1) //函数必须用&声明
{
return $a;
}
$b = &example('引用虾米大王'); //类似c++的地址使用方式
echo $b."<br>";
<?php
/**
* Created by PhpStorm.
*/
function &example($a = 1) //函数必须用&声明
{
return $a;
}
$b = &example('引用虾米大王'); //类似c++的地址使用方式
echo $b."<br>";