Re: Re: [PHP] PHP5 object construct

From: Date: Sat, 23 Sep 2006 00:47:34 +0000
Subject: Re: Re: [PHP] PHP5 object construct
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-242127@lists.php.net to get a copy of this message
PHP has __set and __get in some versions... I think that's what you are looking for. If you told us which particular feature in that pile of code you're asking about, it would help... I still wouldn't know the answer, as I don't do OOP in PHP much, but somebody might. On Fri, September 22, 2006 7:32 pm, Chris Boget wrote: >> well, perhaps I'm not seeing what it is that you're looking for. > > No, I'm not sure you are. Take a look at my sample code again. Pay > particular attention to how both $bob and $Bob are defined. > > class MyClass { > > private $bob; > > public $Bob { > set( $var ) { > $this->bob = $var; > > } > get() { > return $this->bob; > > } > } > } > > thnx, > Chris > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#242127) next »