PHP 中的问题

WBOY
WBOYOriginal
2016-06-23 14:38:53792browse

在 php面相对偶像开发里面碰见了一个方法的定义:

public static function &object(){
......
}

&object是什么意思!
求详解!


回复讨论(解决方案)

手册说的很详细 引用返回

function test(&$param) {    ....}//只知道这种事引用$param的原变量,如果在函数内对$param进行了修改,那么$param原变量会受影响,不知道函数引用是不是一个意思

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn