开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜