PHP Fatal error: Call-time pass-by-reference has been removed

by Francis 2014-08-09 15:08:05

PHP Fatal error: Call-time pass-by-reference has been removed
 
// Wrong way you had Declared
myFunc(&$arg);               # Deprecated pass-by-reference argument
function myFunc($arg) { }

// Right way to change your code to
myFunc($var);                # pass-by-value argument
function myFunc(&$arg) { }
849
like
0
dislike
0
mail
flag

You must LOGIN to add comments