I am wondering if there is a way to watch for variable changes in PHP. For example let's say I have a class
class Chicken
{
public $test = "hi";
}
$test = new Chicken();
$test->test = "hello"; // I want to know when this happens
Is there anyways to determine if a variable was changed?