Lines Matching +refs:obj +refs:before
2 Foreach loop tests - removing properties before and after the current property during the loop.
14 echo "\nRemoving properties before the current element from an iterated object.\n";
15 $obj = new C;
17 foreach ($obj as $v) {
18 if ($v==$obj->a) {
19 unset($obj->c);
27 var_dump($obj);
29 echo "\nRemoving properties before the current element from an iterated object.\n";
30 $obj = new C;
31 foreach ($obj as $v) {
32 if ($v==$obj->b) {
33 unset($obj->a);
41 var_dump($obj);
46 Removing properties before the current element from an iterated object.
62 Removing properties before the current element from an iterated object.