/PHP-8.3/ext/standard/tests/array/ |
H A D | usort_variation6.phpt | 10 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 D | usort_variation8.phpt | 2 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 D | usort_object2.phpt | 10 * 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 D | usort_variation4.phpt | 2 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 D | usort_basic.phpt | 2 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 D | usort_variation3.phpt | 2 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 D | usort_variation10.phpt | 2 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 D | usort_variation5.phpt | 2 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 D | usort_variation9.phpt | 2 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 D | 003.phpt | 2 Test usort, uksort and uasort 26 echo "\n-- Testing usort() --\n"; 27 usort ($data, 'cmp'); 81 -- Testing usort() --
|
H A D | usort_object1.phpt | 2 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 D | usort_stability.phpt | 2 usort() is stable 7 usort($array, function($a, $b) {
|
H A D | usort_variation11.phpt | 2 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 D | usort_variation7.phpt | 2 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 D | bug50006_1.phpt | 2 Bug #50006 (Segfault caused by uksort()) - usort variant 11 usort($data, 'magic_sort_cmp');
|
H A D | unexpected_array_mod_bug.phpt | 14 usort($my_var, "usercompare");
|
H A D | unexpected_array_mod_bug_variation1.phpt | 13 usort($array, function($a, $b) use (&$array, &$ref) {
|
H A D | bug74345.phpt | 32 usort($array, $cb);
|
/PHP-8.3/Zend/tests/ |
H A D | methods-on-non-objects-usort.phpt | 2 usort() in combination with "Call to a member function method() on null" 11 usort($list, function($a, $b) use ($comparator) {
|
/PHP-8.3/ext/standard/tests/dir/ |
H A D | readdir_variation2.phpt | 26 usort($entries, "mysort");
|
H A D | readdir_variation2-win32-mb.phpt | 32 usort($entries, "mysort");
|
/PHP-8.3/ |
H A D | run-tests.php | 712 usort($test_files, "test_sort"); 765 usort($test_files, "test_sort");
|
/PHP-8.3/ext/mbstring/ucgendat/ |
H A D | ucgendat.php | 177 usort($ranges, function (Range $r1, Range $r2) { 610 usort($buckets, function ($b1, $b2) {
|
/PHP-8.3/ext/dom/tests/ |
H A D | DOMNode_isEqualNode.phpt | 59 usort($list1, function ($a, $b) { 62 usort($list2, function ($a, $b) {
|
/PHP-8.3/ext/standard/html_tables/ |
H A D | html_table_gen.php | 433 usort($dp, function($a, $b) { return hexdec($a[1])-hexdec($b[1]); });
|