Home
last modified time | relevance | path

Searched refs:array_column (Results 1 – 17 of 17) sorted by relevance

/PHP-7.3/ext/standard/tests/array/
H A Darray_column_error.phpt2 Test array_column() function: error conditions
12 echo "*** Testing array_column() : error conditions ***\n";
15 var_dump(array_column());
18 var_dump(array_column(array()));
21 var_dump(array_column('foo', 0));
24 var_dump(array_column(1, 'foo'));
27 var_dump(array_column(array(), true));
30 var_dump(array_column(array(), array()));
33 var_dump(array_column(array(), 'foo', true));
36 var_dump(array_column(array(), 'foo', array()));
[all …]
H A Darray_column_basic.phpt2 Test array_column() function: basic functionality
36 var_dump(array_column($records, 'id'));
80 var_dump(array_column($values, 'value'));
89 var_dump(array_column($numericCols, 1));
90 var_dump(array_column($numericCols, 1, 0));
92 var_dump(array_column($numericCols, 1, -1));
95 var_dump(array_column($numericCols, 2));
96 var_dump(array_column($numericCols, 'foo'));
98 var_dump(array_column($numericCols, 3.14));
134 var_dump(array_column($records, $f));
[all …]
H A Darray_column_variant_objects.phpt2 Test array_column() function: testing with objects
54 var_dump(array_column($records, 1));
57 var_dump(array_column($records, 0));
60 var_dump(array_column($records, 2, 0));
63 var_dump(array_column($records, 2, 1));
68 var_dump(array_column($records, 'first_name'));
71 var_dump(array_column($records, 'id'));
74 var_dump(array_column($records, 'last_name', 'id'));
77 var_dump(array_column($records, 'last_name', 'first_name'));
82 *** Testing array_column() : object property fetching (numeric property names) ***
[all …]
H A Darray_column_numeric_string_key.phpt2 array_column() treats numeric string keys as usual
7 var_dump(array_column($array, 42));
8 var_dump(array_column($array, "42"));
H A Dbug69723.phpt2 Bug #69723 (Passing parameters by reference and array_column)
24 var_dump(array_column($array, 'superhero'));
26 var_dump(array_column($array, 'superhero'));
H A Dbug71660.phpt2 Bug #71660 (array_column behaves incorrectly after foreach by reference)
12 var_dump(array_column($arr, 'name', 'id'));
H A Darray_column_property_visibility.phpt2 array_column() respects property visibility
20 var_dump(array_column($arr, "prop"));
H A Darray_column_variant.phpt2 Test array_column() function: variant functionality
12 var_dump(array_column($rows, null, 'id'));
15 var_dump(array_column($rows, null, 'foo'));
18 var_dump(array_column($rows, null));
H A Dbug72031.phpt2 Bug #72031: array_column() against an array of objects discards all values matching null
25 var_dump(array_column($objects, 'prop'));
H A Darray_column_object_cast.phpt2 Test array_column() function: basic functionality
36 $firstNames = array_column($records, $column_key, $index_key);
H A Dbug68553.phpt2 Bug #68553 (array_column: null values in $index_key become incrementing keys in result)
23 var_dump(array_column($a, null, 'a'));
H A Dbug77395.phpt13 array_multisort(array_column($data, 'bb'),SORT_DESC, $data); // PHP Warning error
H A Dbug76713.phpt7 return array_column(array($obj), "prop");
/PHP-7.3/ext/standard/
H A Dphp_array.h74 PHP_FUNCTION(array_column);
H A Dbasic_functions.c3376 PHP_FE(array_column, arginfo_array_column)
H A Darray.c4144 PHP_FUNCTION(array_column) argument
/PHP-7.3/
H A DNEWS1935 . Fixed bug #68553 (array_column: null values in $index_key become incrementing

Completed in 54 milliseconds