novicetillnow Posted August 21, 2009 Share Posted August 21, 2009 Hi, I read in PHP.net site that "Function definitions alone are enough to correctly pass the argument by reference As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use &". Does that mean, function foo(&$var) foo($a); AND function foo($var) foo($a); will have same impact? While passing $a, it is treat as Pass by reference by itself??? Thanks, newtocoding Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.