Re: Any way to make something happen when variable in class changes?

From: Date: Fri, 18 Oct 2002 00:17:44 +0000
Subject: Re: Any way to make something happen when variable in class changes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120446@lists.php.net to get a copy of this message
I believe there is a __get($name, &$value) and __set($name, &$value) functions to be used a getter and setter methods in a class. I have never actually used or seen them other than in the 4.2.3 PHP source. They may not even be compiled in. Let me know if you get them working. Cheers, Owen Prime http://www.noggin.com.au Leif K-Brooks wrote: > Is there a way to make something happen when a variable is changed in a > function? I need to be able to do something like this for my class > which manipulates a record in the database. >

« previous php.general (#120446) next »