开发者

php function & symbol [duplicate]

开发者 https://www.devze.com 2023-01-31 21:00 出处:网络
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?
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

精彩评论

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