Jump to content

Archived

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

Guest askjames01

reference by variable & reference by function?

Recommended Posts

Guest askjames01
ok, i know about referencing --> & and =& operators.

but i want to make my understanding solid...
so here it goes;

[code]
function myfunc(&$var); {
         more codes here...
         }
[/code]
ok i know the above function will reference the argument variable.



[code]
function &myfunc($var); {
         more codes here...
         }
[/code]
and this last function will reference itself. am i right?

if you have more better explaination and examples of codes regarding this two references,
please if possible share it to me... i know i already know them but i just want to make my
understanding solid... -practice, practice, practice is the key to mastery.


thanks n advance...





Share this post


Link to post
Share on other sites
Guest askjames01
how about this [b]wildteen[/b] any good extra elaboration?

Share this post


Link to post
Share on other sites

×

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.