Re: Re: PHP5 object construct

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

 



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


[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