Documented research indicates that on Sun, 29 Aug 2004 21:00:06 +0000, Paul Waring wrote about "Re: [PHP] newbie questions":
>> The constructor for Content accepts an >> object ... why is &$db used instead of $db? > >&$variable means to pass the variable by reference (as opposed to >passing by value, which is the default). Instead of making a copy of >the variable, you are telling $this->db to point to the same point in >memory as the original $db - in effect you are using two names to >point to the same data. If you modify $this->db, $db will also be >modified and vice versa. heh ... nice reply Paul ... much clearer than when my programming teacher tries to explain it heh .... (I'm studying for Programmer/System Developer, and our C++ teacher is rather crummy at explaining stuff) -- Rene Brehmer aka Metalbunny If your life was a dream, would you wake up from a nightmare, dripping of sweat, hoping it was over? Or would you wake up happy and pleased, ready to take on the day with a smile? http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums at http://forums.metalbunny.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php