ED]>; "Andi Gutmans" <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 10:50 AM
Subject: [PHP-DEV] Static vars in methods
> Just ran into something (well, actually searching for it) and wanted to
> know what everyone's thoughts on this were and whether it should stay
> th
Just ran into something (well, actually searching for it) and wanted to
know what everyone's thoughts on this were and whether it should stay
that way.
get());
var_dump($c1->get());
$c2 = new Foo;
var_dump($c2->get());
?>
Outputs:
int(1)
int(2)
int(3)
Basically, the static variable keeps its v