[PHP] Re: static class call..

2003-09-26 Thread jsWalter
"Greg Beaver" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Walter, Hi Greg... > in PHP 4, you can kludge this: > > Class Foo > { > function getBaz($set = null) > { > static $_TintBaz = 9; > if (!is_null($set)) { > $_TintBaz = $set; >

[PHP] Re: static class call..

2003-09-26 Thread Greg Beaver
Hi Walter, Not until PHP 5 Class Foo { static $_TintBaz = 9; } echo Foo::$_TintBaz; in PHP 4, you can kludge this: Class Foo { function getBaz($set = null) { static $_TintBaz = 9; if (!is_null($set)) { $_TintBaz = $set; } return $_TintBaz;