Lines Matching refs:list
11 $list = $doc->getElementsByTagName('strong');
13 function test($list, $key) {
20 …echo "list[$key_formatted] id attribute: ", $list[$key] ? $list[$key]->getAttribute('id') : '/', "…
23 test($list, 0);
24 test($list, false);
25 test($list, true);
26 test($list, null);
27 test($list, '0');
28 test($list, '0.5');
29 test($list, '1');
31 test($list, 'attr2');
32 test($list, 'hi');
34 test($list, '2147483647');
38 list[0] id attribute: 1
39 list[false] id attribute: 1
40 list[true] id attribute: 2
41 list[null] id attribute: 1
42 list['0'] id attribute: 1
43 list['0.5'] id attribute: 1
44 list['1'] id attribute: 2
45 list['attr2'] id attribute: /
46 list['hi'] id attribute: /
47 list['2147483647'] id attribute: /