Re: PHP5 object construct

From: Date: Sat, 23 Sep 2006 00:11:14 +0000
Subject: Re: PHP5 object construct
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242112@lists.php.net to get a copy of this message
http://us2.php.net/class On 9/22/06, Chris Boget <chris.boget@wild.net> wrote:
I read about a feature of PHP5 OOP that is something like this in a book or a magazine a while back. But now I don't remember exactly how this works and I can't find any reference to it in the online docs. The basic idea is something along these lines: class MyClass { private $bob; public $Bob {
    set( $var ) {
      $this->bob = $var;
    }
    get() {
      return $this->bob;
    }
} } Could someone point me to the relevant section of the docs that discusses this? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#242112) next »