[PHP] [Class] Behaviour global variables

2002-08-14 Thread Tim Stoop
Hi there, I'm forgetting something, but I can't seem to get to it... Consider the following Class. class Test { var $a; var $b; function Test() { $this-a = 2; $this-b = 5; } function Show() {

RE: [PHP] [Class] Behaviour global variables

2002-08-14 Thread Richard Black
] [Class] Behaviour global variables Hi there, I'm forgetting something, but I can't seem to get to it... Consider the following Class. class Test { var $a; var $b; function Test() { $this-a = 2; $this-b = 5

Re: [PHP] [Class] Behaviour global variables

2002-08-14 Thread Bas Jobsen
$TEST= new TEST; $a=3; $b=4; $TEST-Show(); works, fine better to use $GLOBALS['a'] instead of global $a Op woensdag 14 augustus 2002 15:27, schreef Tim Stoop: Hi there, I'm forgetting something, but I can't seem to get to it... Consider the following Class. class Test { var $a;