Home
last modified time | relevance | path

Searched refs:uasort (Results 1 – 25 of 30) sorted by relevance

12

/PHP-8.0/ext/standard/tests/array/
H A Duasort_object2.phpt2 Test uasort() function : object functionality - sort diff. objects
15 echo "*** Testing uasort() : object functionality ***\n";
76 echo "-- Testing uasort() with StaticClass objects --\n";
83 var_dump( uasort($array_arg, 'cmp_function') );
87 echo "-- Testing uasort() with EmptyClass objects --\n";
94 var_dump( uasort($array_arg, 'cmp_function') );
105 var_dump( uasort($array_arg, 'cmp_function') );
111 *** Testing uasort() : object functionality ***
112 -- Testing uasort() with StaticClass objects --
128 -- Testing uasort() with EmptyClass objects --
[all …]
H A Duasort_variation8.phpt2 Test uasort() function : usage variations - built-in function as 'cmp_function'
10 echo "*** Testing uasort() : built in function as 'cmp_function' ***\n";
17 echo "-- Testing uasort() with built-in 'cmp_function': strcasecmp() --\n";
18 var_dump( uasort($builtin_fun_arg, 'strcasecmp') ); // expecting: bool(true)
21 echo "-- Testing uasort() with built-in 'cmp_function': strcmp() --\n";
22 var_dump( uasort($array_arg, 'strcmp') ); // expecting: bool(true)
28 *** Testing uasort() : built in function as 'cmp_function' ***
29 -- Testing uasort() with built-in 'cmp_function': strcasecmp() --
43 -- Testing uasort() with built-in 'cmp_function': strcmp() --
H A Duasort_variation4.phpt2 Test uasort() function : usage variations - sort different numeric values
24 echo "*** Testing uasort() : different numeric arrays as 'array_arg' ***\n";
29 var_dump( uasort($int_values, 'cmp_function') ); // expecting: bool(true)
35 var_dump( uasort($octal_values, 'cmp_function') ); // expecting: bool(true)
41 var_dump( uasort($hex_values, 'cmp_function') ); // expecting: bool(true)
47 var_dump( uasort($float_values, 'cmp_function') ); // expecting: bool(true)
53 var_dump( uasort($empty_array, 'cmp_function') ); // expecting: bool(true)
59 *** Testing uasort() : different numeric arrays as 'array_arg' ***
H A Duasort_basic2.phpt2 Test uasort() function : basic functionality - duplicate values
5 echo "*** Testing uasort() : basic functionality with duplicate values ***\n";
23 var_dump( uasort($int_values1, 'cmp') );
29 var_dump( uasort($int_values2, 'cmp') );
35 var_dump( uasort($int_values3, 'cmp') );
41 *** Testing uasort() : basic functionality with duplicate values ***
H A Duasort_variation11.phpt2 Test uasort() function : usage variations - different associative arrays
5 /* Testing uasort() with different associative arrays having keys as
9 echo "*** Testing uasort() : sorting different associative arrays ***\n";
27 var_dump( uasort($array_arg, 'cmp') );
33 var_dump( uasort($array_arg, 'cmp') );
39 *** Testing uasort() : sorting different associative arrays ***
H A Duasort_basic1.phpt2 Test uasort() function : basic functionality
5 echo "*** Testing uasort() : basic functionality ***\n";
23 var_dump( uasort($int_values, 'cmp') );
29 var_dump( uasort($string_values, 'cmp') );
35 var_dump( uasort($numeric_key_arg, 'cmp') );
41 var_dump( uasort($string_key_arg, 'cmp') );
47 *** Testing uasort() : basic functionality ***
H A Duasort_variation10.phpt2 Test uasort() function : usage variations - sort array with reference variables
6 * Testing uasort() with 'array_arg' containing different reference variables
23 echo "*** Testing uasort() : 'array_arg' with elements as reference ***\n";
41 var_dump( uasort($array_arg, 'cmp_function') ); // expecting: bool(true)
47 *** Testing uasort() : 'array_arg' with elements as reference ***
H A Duasort_variation3.phpt2 Test uasort() function : usage variations - sort array with all possible keys
6 * Testing uasort() with 'array_arg' having different keys
9 echo "*** Testing uasort() : Sorting array with all possible keys ***\n";
79 var_dump( uasort($array_arg, 'cmp_function') );
80 echo "-- Sorted array after uasort() function call --\n";
86 *** Testing uasort() : Sorting array with all possible keys ***
88 -- Sorted array after uasort() function call --
H A Duasort_variation6.phpt2 Test uasort() function : usage variations - sort array having subarrays
6 * Testing uasort() with 'array_arg' having different subarrays as array elements
23 echo "*** Testing uasort() : sorting array having different subarrays ***\n";
37 var_dump( uasort($temp_array, 'cmp_function') ); // expecting: bool(true)
42 *** Testing uasort() : sorting array having different subarrays ***
H A Duasort_variation5.phpt2 Test uasort() function : usage variations - sort diff. strings
42 echo "*** Testing uasort() : different string arrays as 'array_arg' ***\n";
50 var_dump( uasort($single_quoted_values, 'cmp_function') ); // expecting: bool(true)
59 var_dump( uasort($double_quoted_values, 'cmp_function') ); // expecting: bool(true)
65 var_dump( uasort($heredoc_values, 'cmp_function') ); // expecting: bool(true)
71 *** Testing uasort() : different string arrays as 'array_arg' ***
H A D003.phpt2 Test usort, uksort and uasort
17 echo " -- Testing uasort() -- \n";
18 uasort ($data, 'cmp');
31 -- Testing uasort() --
H A Duasort_object1.phpt2 Test uasort() function : object functionality
6 * Testing uasort() function with the array of objects
10 echo "*** Testing uasort() : object functionality ***\n";
69 var_dump( uasort($array_arg, 'simple_cmp') );
78 var_dump( uasort($array_arg, 'multiple_cmp') );
84 *** Testing uasort() : object functionality ***
H A Dbug50006_2.phpt2 Bug #50006 (Segfault caused by uksort()) - uasort variant
11 uasort($data, 'magic_sort_cmp');
H A Duasort_variation7.phpt2 Test uasort() function : usage variations - anonymous function as 'cmp_function'
11 echo "*** Testing uasort() : anonymous function as 'cmp_function' ***\n";
21 var_dump( uasort($array_arg, $cmp_function) );
32 var_dump( uasort($array_arg, $cmp_function ) );
38 *** Testing uasort() : anonymous function as 'cmp_function' ***
H A Dusort_variation11.phpt34 uasort($array, "ucmp");
39 die("Array not sorted (uasort)");
50 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less…
56 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less…
62 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less…
68 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less…
74 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less…
80 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less…
86 Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less…
H A Dusort_object2.phpt60 // Testing uasort with StaticClass objects as elements of 'array_arg'
71 // Testing uasort with EmptyClass objects as elements of 'array_arg'
82 // Testing uasort with ChildClass objects as elements of 'array_arg'
H A Duksort_basic.phpt15 uasort($a, "cmp");
H A Dbug28739.phpt15 uasort($p1, 'a');
/PHP-8.0/ext/spl/tests/
H A DarrayObject_uasort_error1.phpt2 Test ArrayObject::uasort() function : wrong arg count
13 $ao->uasort();
19 $ao->uasort(1,2);
25 ArrayObject::uasort() expects exactly 1 argument, 0 given
26 ArrayObject::uasort() expects exactly 1 argument, 2 given
H A DarrayObject_uasort_basic1.phpt2 SPL: Test ArrayObject::uasort() function : basic functionality
10 echo "*** Testing ArrayObject::uasort() : basic functionality ***\n";
25 $ao->uasort('cmp');
29 *** Testing ArrayObject::uasort() : basic functionality ***
H A DArrayObject_sort_different_backing_storage.phpt8 $ao->uasort(function($a, $b) { return $a <=> $b; });
12 $ao2->uasort(function($a, $b) { return $b <=> $a; });
19 $ao3->uasort(function($a, $b) { return $a <=> $b; });
23 $ao4->uasort(function($a, $b) { return $a <=> $b; });
27 $ao5->uasort(function($a, $b) { return $a <=> $b; });
H A DArrayObject_dump_during_sort.phpt8 $ao->uasort(function($a, $b) use ($ao, &$i) {
H A DArrayObject_exchange_array_during_sorting.phpt8 $ao->uasort(function($a, $b) use ($ao, &$i) {
/PHP-8.0/ext/spl/
H A Dspl_array.stub.php43 public function uasort(callable $callback) {} function in ArrayObject
156 public function uasort(callable $callback) {} function in ArrayIterator
H A Dspl_array_arginfo.h156 ZEND_METHOD(ArrayObject, uasort);
193 ZEND_ME(ArrayObject, uasort, arginfo_class_ArrayObject_uasort, ZEND_ACC_PUBLIC)
223 ZEND_MALIAS(ArrayObject, uasort, uasort, arginfo_class_ArrayIterator_uasort, ZEND_ACC_PUBLIC)

Completed in 37 milliseconds

12