This is a discussion on Re: Re: [PHP] PHP5 object construct within the PHP General forums, part of the PHP Programming Forums category; > PHP has __set and __get in some versions... > I think that's what you are looking for. Yes, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> PHP has __set and __get in some versions...
> I think that's what you are looking for. Yes, but exactly. They'll do if there is no other way (as below)... > If you told us which particular feature in that pile of code you're > asking about, it would help... the ability to set an accessor like such: public $Bob { set( $var ) { $this->bob = $var; } get() { return $this->bob; } } thnx, Chris |