![]() |
Call Time by pass by Reference Deprecated??? :S
Code:
Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of is_array(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI filePHP Code:
|
Why are you passing by reference? Take the & away and pass by value.
|
Quote:
|
I dont fully understand refferences, I until now thought they where like C++ pointers. Go here for an explaination PHP: References Explained - Manual
|
Quote:
Edit: BLAH!!! stop editing :P Well, now that you say that now, keep editing xD |
I am officially done editing, I don't fully understand refferences. I will take another crack at it tomorrow when I am not tired. I'm going to bed now.
|
Quote:
|
If you need to pass by reference instead of value, use the referencing operator in the function declaration, instead of sending a reference at call time. Like so:
PHP Code:
PHP Code:
|
Quote:
|
| All times are GMT. The time now is 03:54 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0