Home
last modified time | relevance | path

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

12

/PHP-8.0/ext/standard/tests/array/
H A Dusort_variation6.phpt10 echo "*** Testing usort() : usage variation ***\n";
40 var_dump( usort($temp_array, 'cmp_function') );
42 echo "-- Array after call to usort() --\n";
45 echo "\n-- Pass usort() a sub-array --\n";
46 var_dump( usort($array_args[5], 'cmp_function') );
48 echo "-- Array after call to usort() --\n";
52 *** Testing usort() : usage variation ***
54 -- Pass usort() a two-dimensional array --
56 -- Array after call to usort() --
118 -- Pass usort() a sub-array --
[all …]
H A Dusort_variation8.phpt2 Test usort() function : usage variations - use built in functions as $cmp_function arg
6 * Test usort() when comparison function is:
11 echo "*** Testing usort() : usage variation ***\n";
18 echo "\n-- Testing usort() with built-in 'cmp_function': strcasecmp() --\n";
20 var_dump( usort($temp_array1, 'strcasecmp') );
23 echo "\n-- Testing usort() with built-in 'cmp_function': strcmp() --\n";
25 var_dump( usort($temp_array2, 'strcmp') );
30 *** Testing usort() : usage variation ***
32 -- Testing usort() with built-in 'cmp_function': strcasecmp() --
47 -- Testing usort() with built-in 'cmp_function': strcmp() --
H A Dusort_object2.phpt10 * to test behaviour of usort()
13 echo "*** Testing usort() : object functionality ***\n";
61 echo "-- Testing usort() with StaticClass objects --\n";
68 var_dump( usort($array_arg, 'cmp_function') );
72 echo "-- Testing usort() with EmptyClass objects --\n";
79 var_dump( usort($array_arg, 'cmp_function') );
90 var_dump( usort($array_arg, 'cmp_function') );
94 *** Testing usort() : object functionality ***
95 -- Testing usort() with StaticClass objects --
111 -- Testing usort() with EmptyClass objects --
[all …]
H A Dusort_variation4.phpt2 Test usort() function : usage variations - numeric data
6 * Pass arrays of numeric data to usort() to test how it is re-ordered
9 echo "*** Testing usort() : usage variation ***\n";
30 var_dump( usort($int_values, 'cmp_function') );
38 var_dump( usort($octal_values, 'cmp_function') );
46 var_dump( usort($hex_values, 'cmp_function') );
54 var_dump( usort($float_values, 'cmp_function') );
61 var_dump( usort($empty_array, 'cmp_function') );
65 *** Testing usort() : usage variation ***
H A Dusort_basic.phpt2 Test usort() function : basic functionality
6 * Test basic functionality of usort() with indexed and associative arrays
9 echo "*** Testing usort() : basic functionality ***\n";
27 var_dump( usort($int_values, 'cmp') );
34 var_dump( usort($string_values, 'cmp') );
41 var_dump( usort($numeric_key_arg, 'cmp') );
48 var_dump( usort($string_key_arg, 'cmp') );
52 *** Testing usort() : basic functionality ***
H A Dusort_variation3.phpt2 Test usort() function : usage variations - diff. array values
6 * Pass an array with different data types as keys to usort() to test how it is re-ordered
9 echo "*** Testing usort() : usage variation ***\n";
68 var_dump( usort($array_arg, 'cmp_function') );
69 echo "\n-- Sorted array after usort() function call --\n";
73 *** Testing usort() : usage variation ***
76 -- Sorted array after usort() function call --
H A Dusort_variation10.phpt2 Test usort() function : usage variations - duplicate keys and values
6 * Pass an array with duplicate keys and values to usort() to test behaviour
9 echo "*** Testing usort() : usage variation ***\n";
29 var_dump( usort($array_arg, 'cmp') );
36 var_dump( usort($array_arg, 'cmp') );
40 *** Testing usort() : usage variation ***
H A Dusort_variation5.phpt2 Test usort() function : usage variations - string data
6 * Pass arrays of string data to usort() to test how it is re-ordered
9 echo "*** Testing usort() : usage variation ***\n";
49 var_dump( usort($single_quoted_values, 'cmp_function') );
60 var_dump( usort($double_quoted_values, 'cmp_function') );
68 var_dump( usort($heredoc_values, 'cmp_function') );
72 *** Testing usort() : usage variation ***
H A Dusort_variation9.phpt2 Test usort() function : usage variations - referenced variables
9 echo "*** Testing usort() : usage variation ***\n";
40 var_dump( usort($array_arg, 'cmp_function') );
44 *** Testing usort() : usage variation ***
H A Dusort_stability.phpt2 usort() is stable
7 usort($array, function($a, $b) {
H A D003.phpt2 Test usort, uksort and uasort
26 echo "\n -- Testing usort() -- \n";
27 usort ($data, 'cmp');
81 -- Testing usort() --
H A Dusort_object1.phpt2 Test usort() function : object functionality - different number of properties
7 * to test behaviour of usort()
10 echo "*** Testing usort() : object functionality ***\n";
68 var_dump( usort($array_arg, 'simple_cmp') );
77 var_dump( usort($array_arg, 'multiple_cmp') );
81 *** Testing usort() : object functionality ***
H A Dbug50006_1.phpt2 Bug #50006 (Segfault caused by uksort()) - usort variant
11 usort($data, 'magic_sort_cmp');
H A Dusort_variation11.phpt2 Test usort() function : usage variations - malformed comparison function returning boolean
15 usort($array, "ucmp");
19 die("Array not sorted (usort)");
46 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less …
52 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less …
58 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less …
64 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less …
70 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less …
76 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less …
82 Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less …
H A Dusort_variation7.phpt2 Test usort() function : usage variations - Anonymous comparison function
9 echo "*** Testing usort() : usage variation ***\n";
20 var_dump( usort($array_arg, $cmp_function) );
32 var_dump( usort($array_arg, $cmp_function) );
36 *** Testing usort() : usage variation ***
H A Dunexpected_array_mod_bug.phpt14 usort($my_var, "usercompare");
H A Dunexpected_array_mod_bug_variation1.phpt13 usort($array, function($a, $b) use (&$array, &$ref) {
H A Dbug74345.phpt32 usort($array, $cb);
/PHP-8.0/Zend/tests/
H A Dmethods-on-non-objects-usort.phpt2 usort() in combination with "Call to a member function method() on null"
11 usort($list, function($a, $b) use ($comparator) {
/PHP-8.0/ext/standard/tests/dir/
H A Dreaddir_variation2.phpt26 usort($entries, "mysort");
H A Dreaddir_variation2-win32-mb.phpt32 usort($entries, "mysort");
/PHP-8.0/ext/mbstring/ucgendat/
H A Ducgendat.php162 usort($ranges, function (Range $r1, Range $r2) {
558 usort($buckets, function ($b1, $b2) {
/PHP-8.0/ext/standard/html_tables/
H A Dhtml_table_gen.php433 usort($dp, function($a, $b) { return hexdec($a[1])-hexdec($b[1]); });
/PHP-8.0/
H A Drun-tests.php720 usort($test_files, "test_sort");
779 usort($test_files, "test_sort");
2308 usort($test_files, "test_sort");
3197 usort($PHP_FAILED_TESTS['SLOW'], function (array $a, array $b): int {
/PHP-8.0/ext/standard/
H A Dbasic_functions.stub.php82 function usort(array &$array, callable $callback): bool {} function

Completed in 54 milliseconds

12