Jump to content

What does making a function a reference do?


Deltran

Recommended Posts

I've never seen that on functions. I know you can pass a variable by reference. Normally variables are passed by value, meaning a copy is made, whereas reference points to the actual variable.

Edit:
http://www.php.net/manual/en/language.references.return.php
"Returning by-reference is useful when you want to use a function to find which variable a reference should be bound to."
[quote author=jesirose link=topic=123717.msg511743#msg511743 date=1169585730]
I've never seen that on functions. I know you can pass a variable by reference. Normally variables are passed by value, meaning a copy is made, whereas reference points to the actual variable.

Edit:
http://www.php.net/manual/en/language.references.return.php
"Returning by-reference is useful when you want to use a function to find which variable a reference should be bound to."
[/quote]

Ah, there it is!  Thank you so much!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.