3 // class with __get and __set
18 function __set($n, $v) {
19 echo "A::__set $n, $v\n";
28 function setopprop() {
34 function incdecprop() {
41 // class with __get but not __set
62 function setopprop() {
68 function incdecprop() {
75 // class with __set but not __get
85 function __set($n, $v) {
86 echo "C::__set $n, $v\n";
95 function setopprop() {
101 function incdecprop() {
108 // class without __get or __set
113 function unsetall() {
124 function setopprop() {
130 function incdecprop() {
137 function propd(&$x) {
142 // unset all properties
144 // Prop for visible, accessible property: use __get
146 // Prop for visible, inaccessible property: use __get
148 // PropD for visible, accessible property: use __get
150 // PropD for visible, inaccessible property: use __get
152 // PropU for visible, accessible property
155 // SetProp for visible, accessible properties: use __set
158 // SetOpProp: use __set and __get
161 // IncDecProp: use __set and __get
166 // unset all properties
168 // SetOpProp: use __get
170 // IncDecProp: use __get
175 // unset all properties
184 // unset all properties
186 // Prop for visible, accessible property
188 // PropD for visible, accessible property
190 // PropU for visible, accessible property
192 // SetProp for visible, accessible properties