Re: Re: PHP5 object construct

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

 



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

--
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