Re: [PHP] Static method variable

2008-09-18 Thread Jochem Maas
Christoph Boget schreef: Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function __construct() { }

Re: [PHP] Static method variable

2008-09-18 Thread Micah Gersten
If you're looking for a persistent variable in one class instance, then you need a member variable. If you want it persistent across all class instances, you want a static variable. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Christoph Boget wrote: > Per

Re: [PHP] Static method variable

2008-09-18 Thread Thijs Lensselink
Quoting Christoph Boget <[EMAIL PROTECTED]>: Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function _

[PHP] Static method variable

2008-09-18 Thread Christoph Boget
Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function __construct() { } public function test( $n