开发者

An Ampersand (&) before a function means? [duplicate]

开发者 https://www.devze.com 2022-12-26 03:26 出处:网络
This question already has answers here: 开发者_如何学Go What does it mean to start a PHP function with an ampersand?
This question already has answers here: 开发者_如何学Go What does it mean to start a PHP function with an ampersand? (3 answers) Closed 7 years ago.

I know & is used to create references.

But I wonder what having a & before a function name means:

function &DB($params = '', $active_record_override = FALSE) { // code }


It returns the result by reference. See the manual entry for it here.

0

精彩评论

暂无评论...
验证码 换一张
取 消