开发者

php function & symbol [duplicate]

This question already has answers here: Closed 12 years ago.

Possible Duplicate:

What does it mean to start a PHP functi开发者_如何学Goon with an ampersand?

hi

Why is it that some php functions have a '&' in their signature for example

function &getData()


It returns a reference to a variable.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜