note 7254 deleted from Classes and Objects by ronabop
| From: | ronabop@php.net | Date: | Thu, 17 Aug 2000 10:03:59 +0000 |
| Subject: | note 7254 deleted from Classes and Objects by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2175@lists.php.net to get a copy of this message | ||
I have a class that declares three vars
<PRE>
class xyz {
var a;
var b;
var c;
...
} </PRE>
However, when I assign a value to any of them inside one of the class's functions via the
$this-> operator, it assigns that value to all of the variables. What am I doing wrong? Am I
limited to one global var per class?