Home > Backend Development > PHP Tutorial > PHP 中的问题

PHP 中的问题

WBOY
Release: 2016-06-23 14:38:53
Original
813 people have browsed it

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

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

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


回复讨论(解决方案)

手册说的很详细 引用返回

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template