/PHP-7.2/Zend/tests/ |
H A D | list_keyed_evaluation_order_2.phpt | 20 $arr = []; 21 list($arr[], $arr[]) = ['a', 'b']; 22 var_dump($arr[0]); 23 var_dump($arr[1]); 25 $arr = []; 26 list(0 => $arr[], 1 => $arr[]) = ['a', 'b']; 30 $arr = []; 31 list(1 => $arr[], 0 => $arr[]) = ['b', 'a']; 35 $arr = []; 36 list(list(1 => $arr[], 0 => $arr[])) = [['b', 'a']]; [all …]
|
H A D | 029.phpt | 6 $arr = array(new stdClass); 8 $arr[0]->a = clone $arr[0]; 9 var_dump($arr); 11 $arr[0]->b = new $arr[0]; 12 var_dump($arr); 14 $arr[0]->c = $arr[0]->a; 15 var_dump($arr);
|
H A D | bug50255.phpt | 6 $arr = array('foo' => 'bar'); 9 var_dump(isset($arr->foo)); 10 var_dump(isset($arr->bar)); 11 var_dump(isset($arr['foo'])); 12 var_dump(isset($arr['bar'])); 14 var_dump(empty($arr->foo)); 15 var_dump(empty($arr->bar)); 16 var_dump(empty($arr['foo'])); 17 var_dump(empty($arr['bar']));
|
H A D | dereference_011.phpt | 9 public $arr; 12 return $this->arr; 21 var_dump($foo->a()[1]->arr[1]->a()[1]->arr[1]->arr[0]); 23 var_dump($foo->a()[1]->arr[1]); 29 ["arr"]=> 38 ["arr"]=>
|
H A D | 033.phpt | 6 $arr[1][2][3][4][5]; 8 echo $arr[1][2][3][4][5]; 10 $arr[1][2][3][4][5]->foo; 12 $arr[1][2][3][4][5]->foo = 1; 14 $arr[][] = 2; 16 $arr[][]->bar = 2; 20 Notice: Undefined variable: arr in %s on line %d 22 Notice: Undefined variable: arr in %s on line %d 24 Notice: Undefined variable: arr in %s on line %d
|
H A D | bug72543_1.phpt | 5 $arr = []; 6 $arr[0] = null; 7 $ref =& $arr[0]; 9 $arr[0][0] = $arr[0]; 10 var_dump($arr);
|
H A D | bug72543_2.phpt | 5 $arr = []; 6 $arr[0] = null; 7 $ref =& $arr[0]; 9 $arr[0][$arr[0]] = null; 10 var_dump($arr);
|
H A D | offset_array.phpt | 6 $arr = array(1,2,3,4,5,6,7,8); 8 var_dump($arr[1]); 9 var_dump($arr[0.0836]); 10 var_dump($arr[NULL]); 11 var_dump($arr["run away"]); 13 var_dump($arr[TRUE]); 14 var_dump($arr[FALSE]); 17 var_dump($arr[$fp]); 20 var_dump($arr[$obj]); 23 var_dump($arr[$arr1]);
|
H A D | bug60362.phpt | 5 $arr = array('exists' => 'foz'); 7 if (isset($arr['exists']['non_existent'])) { 9 var_dump($arr['exists']['non_existent']); 13 if (isset($arr['exists'][1])) { 15 var_dump($arr['exists'][1]); 27 if (isset($arr['exists'][1][0])) { 29 var_dump($arr['exists'][1][0]); 41 if (empty($arr['exists'][1])) { 45 var_dump($arr['exists'][1]); 55 if (empty($arr['exists'][1][0])) { [all …]
|
H A D | bug40509.phpt | 7 global $arr; 9 $c = $arr["v"]; 13 $arr["v"] = array("a"); 15 var_dump(key($arr["v"])); 17 var_dump(key($arr["v"])); 18 foreach ($arr["v"] as $k => $v) { 21 var_dump(key($arr["v"]));
|
H A D | indirect_call_array_004.phpt | 21 $arr = array('foo', 'abc'); 24 $arr(); 30 $arr = array('foo', '123'); 33 $arr(); 43 $arr = array($foo, 'abc'); 46 $arr(); 54 $arr = array($foo, '123'); 57 $arr();
|
H A D | bug60169.phpt | 6 $arr = array("test"); 7 list($a,$b) = is_array($arr)? $arr : $arr; 8 list($c,$d) = is_array($arr)?: NULL;
|
/PHP-7.2/ext/standard/tests/array/ |
H A D | bug70668.phpt | 7 $s = &$arr[0]; 8 var_dump(array_keys($arr, $s, true)); 10 $s = &$arr[1]; 11 var_dump(array_keys($arr, $s, true)); 13 $s = &$arr[2]; 14 var_dump(array_keys($arr, $s, true)); 16 $s = &$arr[3]; 19 $s = &$arr[4]; 22 $s = &$arr[5]; 25 $s = &$arr[6]; [all …]
|
H A D | array_map_variation2.phpt | 12 $arr = array("k1" => "v1","k2"=>"v2"); 13 $arr[]=&$arr["k1"]; 14 $arr[]=&$arr; 17 var_dump( array_map("cb1", $arr)); 18 var_dump( array_map("cb2", $arr,$arr)); 19 var_dump( array_map(null, $arr)); 20 var_dump( array_map(null, $arr, $arr)); 23 $arr[0] = null; 24 $arr[1] = null;
|
H A D | bug71660.phpt | 5 $arr = array('id' => 12345, 'name' => 'sam'); 6 foreach ($arr as &$v) { 10 $arr = [$arr]; 12 var_dump(array_column($arr, 'name', 'id'));
|
/PHP-7.2/ext/intl/doc/ |
H A D | collator_api.php | 142 * @param array $arr Array of strings to sort 151 public function sort( $arr, $sort_flags ) {} argument 158 * @param array $arr Array of strings to sort 165 public function asort( $arr, $sort_flags ) {} argument 173 * @param array $arr Array of strings to sort 177 public function sortWithSortKeys( $arr ) {} argument 295 function collator_sort( $coll, $arr, $sort_flags ) {} argument 301 * @param array $arr Array of strings to sort. 308 function collator_asort( $coll, $arr, $sort_flags ) {} argument 317 * @param array $arr Array of strings to sort [all …]
|
/PHP-7.2/ext/phar/tests/cache_list/files/ |
H A D | write6.phar | 7 $arr = $phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP… 8 $arr = $phar->buildFromDirectory($d); 9 ksort($arr); 10 var_dump($arr); 12 $arr = array(); 14 $arr[$name] = $file->getContent(); 16 ksort($arr); 17 foreach ($arr as $name => $content) {
|
H A D | write6.phar.inc | 13 $arr = $phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP… 14 $arr = $phar->buildFromDirectory($d); 15 ksort($arr); 16 var_dump($arr); 18 $arr = array(); 20 $arr[$name] = $file->getContent(); 22 ksort($arr); 23 foreach ($arr as $name => $content) {
|
H A D | write5.phar | 7 $arr = $phar->buildFromDirectory($d); 8 ksort($arr); 9 var_dump($arr); 11 $arr = array(); 13 $arr[$name] = $file->getContent(); 15 ksort($arr); 16 foreach ($arr as $name => $content) {
|
H A D | write5.phar.inc | 13 $arr = $phar->buildFromDirectory($d); 14 ksort($arr); 15 var_dump($arr); 17 $arr = array(); 19 $arr[$name] = $file->getContent(); 21 ksort($arr); 22 foreach ($arr as $name => $content) {
|
/PHP-7.2/ext/sysvmsg/tests/ |
H A D | 004.phpt | 12 $arr = array('msg_perm.mode' => 0600); 13 var_dump(msg_set_queue($q, $arr)); 15 var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); 18 $arr = array('msg_perm.uid' => getmyuid()); 19 var_dump(msg_set_queue($q, $arr)); 21 var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); 24 $arr = array('msg_perm.gid' => getmygid()); 25 var_dump(msg_set_queue($q, $arr)); 27 var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); 31 $arr = array('msg_qbytes' => ($res['msg_qbytes'] -1)); [all …]
|
/PHP-7.2/tests/lang/operators/ |
H A D | coalesce.phpt | 12 $arr = [ 34 var_dump($arr["qux"]->boo ?? 3); 35 var_dump($arr["qux"]->bing ?? 3); 37 var_dump($arr[2] ?? 3); 38 var_dump($arr["foo"] ?? 3); 39 var_dump($arr["foobar"] ?? 3); 40 var_dump($arr["qux"] ?? 3); 41 var_dump($arr["bing"][0] ?? 3); 42 var_dump($arr["bing"][1] ?? 3);
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | parse_str_basic4.phpt | 5 /* Prototype : void parse_str ( string $str [, array &$arr ] ) 11 $str = "arr[1=sid&arr[4][2=fred"; 15 $str = "arr1]=sid&arr[4]2]=fred"; 19 $str = "arr[one=sid&arr[4][two=fred"; 29 $str = "arr.test[1]=sid&arr test[4][two]=fred"; 40 ["arr"]=> 50 ["arr"]=> 60 ["arr"]=>
|
/PHP-7.2/tests/lang/ |
H A D | foreach_with_references_001.phpt | 6 $arr = array(1 => "one", 2 => "two", 3 => "three"); 8 foreach($arr as $key => $val) { 12 print_r($arr); 14 foreach($arr as $key => &$val) { 18 print_r($arr);
|
/PHP-7.2/Zend/tests/arg_unpack/ |
H A D | by_ref_separation.phpt | 12 $arr = [1, 2]; 13 $arr[] = 3; 14 $arr2 = $arr; 15 inc(...$arr); 16 var_dump($arr);
|