Searched refs:array_column (Results 1 – 17 of 17) sorted by relevance
/PHP-7.3/ext/standard/tests/array/ |
H A D | array_column_error.phpt | 2 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 D | array_column_basic.phpt | 2 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 D | array_column_variant_objects.phpt | 2 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 D | array_column_numeric_string_key.phpt | 2 array_column() treats numeric string keys as usual 7 var_dump(array_column($array, 42)); 8 var_dump(array_column($array, "42"));
|
H A D | bug69723.phpt | 2 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 D | bug71660.phpt | 2 Bug #71660 (array_column behaves incorrectly after foreach by reference) 12 var_dump(array_column($arr, 'name', 'id'));
|
H A D | array_column_property_visibility.phpt | 2 array_column() respects property visibility 20 var_dump(array_column($arr, "prop"));
|
H A D | array_column_variant.phpt | 2 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 D | bug72031.phpt | 2 Bug #72031: array_column() against an array of objects discards all values matching null 25 var_dump(array_column($objects, 'prop'));
|
H A D | array_column_object_cast.phpt | 2 Test array_column() function: basic functionality 36 $firstNames = array_column($records, $column_key, $index_key);
|
H A D | bug68553.phpt | 2 Bug #68553 (array_column: null values in $index_key become incrementing keys in result) 23 var_dump(array_column($a, null, 'a'));
|
H A D | bug77395.phpt | 13 array_multisort(array_column($data, 'bb'),SORT_DESC, $data); // PHP Warning error
|
H A D | bug76713.phpt | 7 return array_column(array($obj), "prop");
|
/PHP-7.3/ext/standard/ |
H A D | php_array.h | 74 PHP_FUNCTION(array_column);
|
H A D | basic_functions.c | 3376 PHP_FE(array_column, arginfo_array_column)
|
H A D | array.c | 4144 PHP_FUNCTION(array_column) argument
|
/PHP-7.3/ |
H A D | NEWS | 1935 . Fixed bug #68553 (array_column: null values in $index_key become incrementing
|
Completed in 66 milliseconds