Re: static class call..
| From: | jsWalter | Date: | Sat, 27 Sep 2003 06:31:11 +0000 |
| Subject: | Re: static class call.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164081@lists.php.net to get a copy of this message | ||
"Greg Beaver" <greg@chiaraquartet.net> wrote in message
news:3F751E2F.1010702@chiaraquartet.net...
> 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;
> }
> return $_TintBaz;
> }
> }
So I take it that this "kludge" will return a method variable, not a class
property.
mmm.
Thx for the help.
This Class thing is getting clear as mud! ;)
Thank you for your help Greg.
Walter