Re: PHP5 object construct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://us2.php.net/class



On 9/22/06, Chris Boget <chris.boget@xxxxxxxx> 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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux