Lines Matching refs:obj
6 $obj = new ArrayObject(array('1st', 1, 2=>'3rd', '4th'=>4));
8 var_dump($obj->getArrayCopy());
11 var_dump(empty($obj[0]));
12 var_dump(empty($obj[1]));
13 var_dump(empty($obj[2]));
14 var_dump(empty($obj['4th']));
15 var_dump(empty($obj['5th']));
16 var_dump(empty($obj[6]));
19 var_dump(isset($obj[0]));
20 var_dump(isset($obj[1]));
21 var_dump(isset($obj[2]));
22 var_dump(isset($obj['4th']));
23 var_dump(isset($obj['5th']));
24 var_dump(isset($obj[6]));
27 var_dump($obj[0]);
28 var_dump($obj[1]);
29 var_dump($obj[2]);
30 var_dump($obj['4th']);
31 var_dump($obj['5th']);
32 var_dump($obj[6]);
36 $obj[1] = 'Changed 1';
37 var_dump($obj[1]);
39 $obj['4th'] = 'Changed 4th';
40 var_dump($obj['4th']);
42 $obj['5th'] = 'Added 5th';
43 var_dump($obj['5th']);
45 $obj[6] = 'Added 6';
46 var_dump($obj[6]);
48 var_dump($obj[0]);
49 var_dump($obj[2]);
51 $x = $obj[6] = 'changed 6';
52 var_dump($obj[6]);
56 var_dump($obj->getArrayCopy());
57 unset($obj[2]);
58 unset($obj['4th']);
59 unset($obj[7]);
60 unset($obj['8th']);
61 var_dump($obj->getArrayCopy());