了解PHP的返回引用和局部静态变量
先阅读手册==========从函数返回一个引用,必须在函数声明和指派返回值给一个变量时都使用引用操作符 & : 复制代码 代码如下:<?php function &returns_reference() { $someref = 0; return $someref; } $newref = &returns_reference();//相当于 $newref = &$someref; ?>有关引用的更多信息, 请查看引...