Menu
What is the difference between the following. What are the implications of using each?
Function taking a parameter by reference
[code=php]
function my_func( &my_var ) { }
my_func( my_var );
Passing a reference to a variable to a function
[code=php]
function my_func( my_var ) { }
my_func( &my_var );
Passing a reference to a variable to a function expecting a reference to a variable
[code=php]
function my_func( &my_var ) { }
my_func( &my_var );