Re: newbie questions

From: Date: Wed, 01 Sep 2004 05:14:33 +0000
Subject: Re: newbie questions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195365@lists.php.net to get a copy of this message
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/

« previous php.general (#195365) next »