Home
last modified time | relevance | path

Searched refs:ary (Results 1 – 25 of 28) sorted by relevance

12

/PHP-7.4/Zend/tests/list/
H A Dlist_reference_009.phpt5 $ary = [[0, 1]];
8 ($ary["foo"] = 1) => &$b
9 ]] = $ary;
11 var_dump($ary, $a, $b);
12 unset($ary, $a, $b);
14 $ary = [[0, 1]];
17 ($ary["foo"] = 1) => &$b
18 ] = $ary[0];
19 var_dump($ary, $a, $b);
/PHP-7.4/ext/reflection/tests/
H A DReflectionReference.phpt6 $ary = [0, 1, 2, 3];
7 $ref1 =& $ary[1];
9 $ref2 =& $ary[2];
10 $ref3 =& $ary[3];
13 $r0 = ReflectionReference::fromArrayElement($ary, 0);
15 $r1 = ReflectionReference::fromArrayElement($ary, 1);
17 $r2 = ReflectionReference::fromArrayElement($ary, 2);
19 $r3 = ReflectionReference::fromArrayElement($ary, 3);
28 $ary2 = [&$ary[2], &$ref3];
38 $r2 = ReflectionReference::fromArrayElement($ary, 2);
[all …]
H A DReflectionReference_errors.phpt25 $ary = [0, 1, 2];
26 ReflectionReference::fromArrayElement($ary, 3);
32 $ary = [&$ary];
33 $ref = ReflectionReference::fromArrayElement($ary, 0);
/PHP-7.4/Zend/tests/
H A Dbug63734.phpt9 public $ary;
12 $this->ary[] = 42;
15 global $ary;
16 $ary[] = $this->ary[0];
24 var_dump($ary);
H A Darray_add_indirect.phpt7 $ary = ['y' => 1];
8 $ary += $GLOBALS;
9 var_dump($ary['x']);
11 var_dump($ary['x']);
H A Dbug79793.phpt13 $ary = [];
14 $ary[$key]++;
15 var_dump($ary);
16 $ary[$key] += 1;
17 var_dump($ary);
H A Dassign_coalesce_001.phpt35 $ary = [];
36 $ary["foo"] ??= 123;
37 $ary[$foo] ??= $bar;
38 $ary[$bar] ??= $foo;
39 var_dump($ary);
41 $ary = [];
42 $ary[id($foo)] ??= 123;
43 $ary[id($foo)] ??= $bar;
44 $ary[id($bar)] ??= $foo;
45 var_dump($ary);
H A Dassign_coalesce_002.phpt20 $ary = [];
22 $ary[id($foo)] ??= do_throw("ex1");
26 var_dump($ary);
46 $ary = new AA;
48 $ary[new Dtor][id($foo)] ??= $bar;
65 $ary = ["foo" => new AA2];
67 $ary[id($foo)][new Dtor] ??= $bar;
H A Dbug78589.phpt12 $ary = [&$ary, $test];
13 unset($ary, $test);
H A Dassign_coalesce_003.phpt31 $ary = new AA(["foo" => new AA, "null" => null]);
34 $ary["foo"] ??= "bar";
37 $ary["bar"] ??= "foo";
40 $ary["null"] ??= "baz";
43 $ary["foo"]["bar"] ??= "abc";
46 $ary["foo"]["bar"] ??= "def";
H A Dbug76846.phpt19 $ary = [];
21 $ary[] = new stdClass;
/PHP-7.4/ext/opcache/tests/
H A Dbug78230.phpt11 $ary = [1, 2];
12 $ary[] = 3;
13 test($ary);
14 $ary[] = 4;
15 var_dump($ary);
H A Dassign_obj_op_of_fetch_dim.phpt2 Type inference for $ary[$idx]->prop +=
7 $ary = [];
8 $ary[0]->y += 2;
9 var_dump(is_object($ary[0]));
/PHP-7.4/ext/standard/tests/array/
H A Dbug22463.phpt6 function a($ary) {
7 return (is_array($ary) ? array_reduce($ary, 'cb', 0) : 1);
14 $ary = array(
26 var_dump(a($ary));
/PHP-7.4/Zend/tests/generators/
H A Dgc_running_generator.phpt9 $ary = [new stdClass, new stdClass, new stdClass];
10 $ary[0]->foo = $ary;
11 foreach ($ary as &$v) { }
/PHP-7.4/ext/soap/tests/interop/Round2/GroupB/
H A Dround2_groupB.inc23 function echo2DStringArray($ary)
25 return $ary;
28 function echoNestedArray($ary)
30 return $ary;
/PHP-7.4/Zend/tests/type_declarations/
H A Dtyped_properties_099.phpt7 public array $ary = [];
11 foreach ($test->ary as &$value) {}
17 ["ary"]=>
H A Dtyped_properties_106.phpt16 $ary = [1];
17 $ref = $ary;
/PHP-7.4/ext/standard/tests/general_functions/
H A Dget_cfg_var_array.phpt4 ary[a] = 1
5 ary[b] = 2
11 var_dump(get_cfg_var('ary'));
/PHP-7.4/ext/spl/tests/
H A Drecursive_tree_iterator_004.phpt8 $ary = array(
27 $it = new RecursiveTreeIterator(new RecursiveArrayIterator($ary));
H A Drecursive_tree_iterator_007.phpt8 $ary = array(new stdClass);
20 $it = new RecursiveArrayIteratorAggregated($ary);
H A Drecursive_tree_iterator_008.phpt8 $ary = array(
13 $it = new RecursiveArrayIterator($ary);
H A Drecursive_tree_iterator_001.phpt8 $ary = array(
27 $it = new RecursiveArrayIterator($ary);
H A Drecursive_tree_iterator_005.phpt8 $ary = array(
28 $it = new RecursiveTreeIterator(new RecursiveArrayIterator($ary), 0);
/PHP-7.4/ext/soap/tests/soap12/
H A Dsoap12-test.inc81 function echo2DStringArray($ary) {
82 return $ary;
85 function echoNestedArray($ary) {
86 return $ary;

Completed in 28 milliseconds

12