Second Test.
a = $a;
$this->b = $b;
echo "$this->a. ";
echo "$this->b. ";
$this->construction_test = "construction test";
echo "end construction. ";
}
public function setup_associative() {
echo "begin setup_associative. ";
$this['test_associative'] = "test associative. ";
echo "end setup_associative. ";
}
public function setup_property() {
echo "begin setup_property. ";
$this->test_property = "test property. ";
echo "end setup_property. ";
}
public function test_associative() {
echo "begin test_associative. ";
echo $this['test_associative'];
echo "end test_associative. ";
}
public function test_property() {
echo "begin test_property. ";
echo $this->test_property;
echo "end test_property. ";
}
}
echo " defined. ";
$t = new Thing("a", "b");
//$t->setup_associative();
$t->setup_property();
//$t->test_associative();
$t->test_property();
echo " done.";
?>