Lines Matching refs:obj
15 $obj = new C;
16 foreach ($obj as $k=>$v) {
17 $obj->$k="changed.$k";
20 var_dump($obj);
23 $obj = new C;
24 foreach ($obj as $k=>$v) {
27 var_dump($obj);
31 $obj = new C;
32 foreach ($obj as $k=>&$v) {
35 var_dump($obj);
38 $obj = new C;
40 foreach ($obj as $v) {
42 $obj->$newPropName = "Added property $counter";
49 var_dump($obj);
52 $obj = new C;
54 foreach ($obj as &$v) {
56 $obj->$newPropName = "Added property $counter";
63 var_dump($obj);
66 $obj = new C;
67 foreach ($obj as $v) {
68 unset($obj->a);
69 unset($obj->b);
70 unset($obj->c);
73 var_dump($obj);
76 $obj = new C;
77 foreach ($obj as &$v) {
78 unset($obj->a);
79 unset($obj->b);
80 unset($obj->c);
83 var_dump($obj);