Home
last modified time | relevance | path

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

/PHP-8.0/ext/standard/tests/array/
H A Drsort_basic.phpt2 Test rsort() function : basic functionality
6 * Test basic functionality of rsort()
9 echo "*** Testing rsort() : basic functionality ***\n";
23 var_dump( rsort($temp_array) );
28 var_dump( rsort($temp_array) );
33 var_dump( rsort($temp_array, SORT_REGULAR) );
38 var_dump( rsort($temp_array, SORT_REGULAR) );
43 var_dump( rsort($temp_array, SORT_STRING) );
63 var_dump( rsort($temp_array, SORT_NUMERIC) );
69 *** Testing rsort() : basic functionality ***
[all …]
H A Drsort_variation10.phpt2 Test rsort() function : usage variations - Octal values
6 * Pass rsort() an array containing octal values to test behaviour
9 echo "*** Testing rsort() : variation ***\n";
16 var_dump(rsort($temp_array) );
21 var_dump(rsort($temp_array, SORT_REGULAR) );
26 var_dump(rsort($temp_array, SORT_NUMERIC) );
32 *** Testing rsort() : variation ***
H A Drsort_variation7.phpt2 Test rsort() function : usage variations - boolean values
6 * Pass rsort() arrays of boolean values to test behaviour
9 echo "*** Testing rsort() : variation ***\n";
16 var_dump(rsort($temp_array) );
21 var_dump(rsort($temp_array, SORT_REGULAR) );
26 var_dump(rsort($temp_array, SORT_NUMERIC) );
31 var_dump(rsort($temp_array, SORT_STRING) );
37 *** Testing rsort() : variation ***
H A Drsort_variation4.phpt2 Test rsort() function : usage variations - referenced variables
6 * Test behaviour of rsort() when:
12 echo "*** Testing rsort() : variation ***\n";
23 var_dump( rsort($temp_array) );
28 var_dump( rsort($temp_array, SORT_REGULAR) );
34 *** Testing rsort() : variation ***
H A Drsort_variation6.phpt2 Test rsort() function : usage variations - Hexadecimal vales
6 * Pass rsort() an array of hexadecimal values to test behaviour
9 echo "*** Testing rsort() : variation ***\n";
16 var_dump(rsort($temp_array) );
21 var_dump(rsort($temp_array, SORT_REGULAR) );
26 var_dump(rsort($temp_array, SORT_NUMERIC) );
32 *** Testing rsort() : variation ***
H A Drsort_object1.phpt2 Test rsort() function : object functionality
6 * Test basic functionality of rsort() with objects
9 echo "*** Testing rsort() : object functionality ***\n";
56 // testing rsort() function by supplying integer object array, flag value is default
58 var_dump(rsort($temp_array) );
61 // testing rsort() function by supplying string object array, flag value is default
63 var_dump(rsort($temp_array) );
69 var_dump(rsort($temp_array, SORT_REGULAR) );
72 // testing rsort() function by supplying string object array, flag value = SORT_REGULAR
74 var_dump(rsort($temp_array, SORT_REGULAR) );
[all …]
H A Drsort_variation8.phpt2 Test rsort() function : usage variations - multi-dimensional arrays
6 * Pass rsort() multi-dimensional arrays to test behaviour
9 echo "*** Testing rsort() : variation ***\n";
29 // loop through to test rsort() with different arrays
36 var_dump(rsort($temp_array) );
41 var_dump(rsort($temp_array, SORT_REGULAR) );
49 *** Testing rsort() : variation ***
H A Drsort_variation11.phpt2 Test rsort() function : usage variations - mixed array
6 * Pass rsort() an array of different data types to test behaviour
9 echo "*** Testing rsort() : variation ***\n";
25 var_dump(rsort($temp_array) );
30 var_dump(rsort($temp_array, SORT_REGULAR) );
36 *** Testing rsort() : variation ***
H A Drsort_object2.phpt2 Test rsort() function : object functionality - different visibilities
6 * Test functionality of rsort() with objects where properties have different visibilities
9 echo "*** Testing rsort() : object functionality ***\n";
67 // testing rsort() function by supplying integer object array, flag value is default
69 var_dump(rsort($temp_array) );
72 // testing rsort() function by supplying string object array, flag value is default
74 var_dump(rsort($temp_array) );
80 var_dump(rsort($temp_array, SORT_REGULAR) );
83 // testing rsort() function by supplying string object array, flag value = SORT_REGULAR
85 var_dump(rsort($temp_array, SORT_REGULAR) );
[all …]
H A Drsort_variation5.phpt2 Test rsort() function : usage variations - String values
6 * Pass arrays containing different string data to rsort() to test behaviour
9 echo "*** Testing rsort() : variation ***\n";
22 // loop through to test rsort() with different arrays
28 var_dump(rsort($temp_array) );
36 var_dump(rsort($temp_array, $flag) );
45 *** Testing rsort() : variation ***
H A Drsort_variation9.phpt2 Test rsort() function : usage variations - mixed associative arrays
6 * Pass rsort() associative arrays to test key re-assignment
9 echo "*** Testing rsort() : variation ***\n";
33 // loop through to test rsort() with different arrays,
40 var_dump(rsort($temp_array) );
45 var_dump(rsort($temp_array, SORT_REGULAR) );
53 *** Testing rsort() : variation ***
H A Drsort_variation3.phpt2 Test rsort() function : usage variations - numeric values
10 * Pass arrays containing different numeric data to rsort() to test behaviour
13 echo "*** Testing rsort() : variation ***\n";
36 // loop through to test rsort() with different arrays
42 var_dump(rsort($temp_array) );
49 var_dump(rsort($temp_array, $flag) );
58 *** Testing rsort() : variation ***
H A D002.phpt2 Test arsort, asort, krsort, ksort, rsort, and sort
27 foreach (array ('arsort', 'asort', 'krsort', 'ksort', 'rsort', 'sort') as $test_function) {
472 -- Testing rsort() --
/PHP-8.0/Zend/tests/
H A Dforeach_011.phpt9 rsort($a);
/PHP-8.0/ext/standard/
H A Dbasic_functions.stub.php80 function rsort(array &$array, int $flags = SORT_REGULAR): bool {} function
H A Dbasic_functions_arginfo.h2244 ZEND_FUNCTION(rsort);
2868 ZEND_FE(rsort, arginfo_rsort)
H A Darray.c877 PHP_FUNCTION(rsort) in PHP_FUNCTION() argument

Completed in 75 milliseconds