Home
last modified time | relevance | path

Searched refs:arsort (Results 1 – 16 of 16) sorted by relevance

/PHP-7.4/ext/standard/tests/array/
H A Darsort_variation4.phpt2 Test arsort() function : usage variations - sort reference variables
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
12 * Testing arsort() by providing reference variable array with following flag values
18 echo "*** Testing arsort() :usage variations ***\n";
29 var_dump( arsort($temp_array) ); // expecting : bool(true)
34 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
39 var_dump( arsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
45 *** Testing arsort() :usage variations ***
47 -- Testing arsort() by supplying reference variable array, 'flag' value is defualt --
58 -- Testing arsort() by supplying reference variable array, 'flag' = SORT_REGULAR --
[all …]
H A Darsort_variation7.phpt2 Test arsort() function : usage variations - sort bool values
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
17 echo "*** Testing arsort() : usage variations ***\n";
24 var_dump(arsort($temp_array) );
29 var_dump(arsort($temp_array, SORT_REGULAR) );
34 var_dump(arsort($temp_array, SORT_NUMERIC) );
39 var_dump(arsort($temp_array, SORT_STRING) );
45 *** Testing arsort() : usage variations ***
47 -- Testing arsort() by supplying bool value array, 'flag' value is defualt --
60 -- Testing arsort() by supplying bool value array, 'flag' value is SORT_REGULAR --
[all …]
H A Darsort_basic.phpt2 Test arsort() function : basic functionality
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
20 echo "*** Testing arsort() : basic functionality ***\n";
33 var_dump( arsort($temp_array) ); // expecting : bool(true)
38 var_dump( arsort($temp_array) ); // expecting : bool(true)
43 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
48 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
53 var_dump( arsort($temp_array, SORT_STRING) ); // expecting : bool(true)
63 var_dump( arsort($temp_array, SORT_NATURAL) ); // expecting : bool(true)
79 *** Testing arsort() : basic functionality ***
[all …]
H A Darsort_variation10.phpt2 Test arsort() function : usage variations - sort octal values
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
18 echo "*** Testing arsort() : usage variations ***\n";
26 echo "\n-- Testing arsort() by supplying octal value array, 'flag' value is defualt --\n";
28 var_dump( arsort($temp_array) ); // expecting : bool(true)
33 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
38 var_dump( arsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
44 *** Testing arsort() : usage variations ***
46 -- Testing arsort() by supplying octal value array, 'flag' value is defualt --
69 -- Testing arsort() by supplying octal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Darsort_variation6.phpt2 Test arsort() function : usage variations - sort hexadecimal values
5 /* Prototype : bool arsort ( array &$array [, int $asort_flags] )
18 echo "*** Testing arsort() : usage variations ***\n";
26 echo "\n-- Testing arsort() by supplying hexadecimal value array, 'flag' value is defualt --\n";
28 var_dump(arsort($temp_array) ); // expecting : bool(true)
33 var_dump(arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
38 var_dump(arsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
44 *** Testing arsort() : usage variations ***
46 -- Testing arsort() by supplying hexadecimal value array, 'flag' value is defualt --
69 -- Testing arsort() by supplying hexadecimal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Darsort_object1.phpt2 Test arsort() function : object functionality - sort objects
5 /* Prototype : bool arsort ( array &$array [, int $asort_flags] )
12 * testing arsort() by providing integer/string object arrays with following flag values
17 echo "*** Testing arsort() : object functionality ***\n";
66 var_dump(arsort($temp_array) );
69 // testing arsort() function by supplying string object array, flag value is defualt
71 var_dump(arsort($temp_array) );
77 var_dump(arsort($temp_array, SORT_REGULAR) );
82 var_dump(arsort($temp_array, SORT_REGULAR) );
88 *** Testing arsort() : object functionality ***
[all …]
H A Darsort_variation8.phpt2 Test arsort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defau…
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
18 echo "*** Testing arsort() : usage variations ***\n";
38 echo "\n-- Testing arsort() by supplying various arrays containing sub arrays --\n";
40 // loop through to test arsort() with different arrays
44 // testing arsort() function by supplying different arrays, flag value is default
47 var_dump(arsort($temp_array) );
50 // testing arsort() function by supplying different arrays, flag value = SORT_REGULAR
53 var_dump(arsort($temp_array, SORT_REGULAR) );
61 *** Testing arsort() : usage variations ***
[all …]
H A Darsort_variation11.phpt2 Test arsort() function : usage variations - sort mixed values, 'sort_flags' as default/SORT_REGULAR…
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
12 * testing arsort() by providing mixed value array for $array argument with following flag values.
17 echo "*** Testing arsort() : usage variations ***\n";
31 echo "\n-- Testing arsort() by supplying mixed value array, 'flag' value is default --\n";
33 var_dump( arsort($temp_array) );
36 echo "\n-- Testing arsort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n";
38 var_dump( arsort($temp_array, SORT_REGULAR) );
44 *** Testing arsort() : usage variations ***
46 -- Testing arsort() by supplying mixed value array, 'flag' value is default --
[all …]
H A Darsort_object2.phpt5 /* Prototype : bool arsort ( array &$array [, int $asort_flags] )
12 * testing arsort() by providing integer/string object arrays with following flag values
17 echo "*** Testing arsort() : object functionality ***\n";
68 // testing arsort() function by supplying integer object array, flag value is default
70 var_dump(arsort($temp_array) );
73 // testing arsort() function by supplying string object array, flag value is default
75 var_dump(arsort($temp_array) );
81 var_dump(arsort($temp_array, SORT_REGULAR) );
86 var_dump(arsort($temp_array, SORT_REGULAR) );
92 *** Testing arsort() : object functionality ***
[all …]
H A Darsort_variation3.phpt2 Test arsort() function : usage variations - sort integer/float values
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
12 …* Testing arsort() by providing different integer/float value arrays for $array argument with foll…
18 echo "*** Testing arsort() : usage variations ***\n";
39 echo "\n-- Testing arsort() by supplying various integer/float arrays --\n";
41 // loop through to test arsort() with different arrays
47 var_dump(arsort($temp_array) );
54 var_dump(arsort($temp_array, $flag) );
63 *** Testing arsort() : usage variations ***
65 -- Testing arsort() by supplying various integer/float arrays --
H A Darsort_variation9.phpt2 Test arsort() function : usage variations - sorting arrays with/without keys, 'sort_flags' as defau…
5 /* Prototype : bool arsort ( array &$array [, int $sort_flags] )
12 …* Testing arsort() by providing arrays with key values for $array argument with following flag va…
17 echo "*** Testing arsort() : usage variations ***\n";
31 echo "\n-- Testing arsort() by supplying various arrays with key values --\n";
33 // loop through to test arsort() with different arrays,
40 var_dump(arsort($temp_array) );
45 var_dump(arsort($temp_array, SORT_REGULAR) );
53 *** Testing arsort() : usage variations ***
55 -- Testing arsort() by supplying various arrays with key values --
H A Darsort_variation5.phpt2 Test arsort() function : usage variations - sort strings
5 /* Prototype : bool arsort ( array &$array [, int $asort_flags] )
12 …* testing arsort() by providing different string arrays for $array argument with following flag va…
18 echo "*** Testing arsort() : usage variations ***\n";
37 echo "\n-- Testing arsort() by supplying various string arrays --\n";
39 // loop through to test arsort() with different arrays
45 var_dump(arsort($temp_array) ); // expecting : bool(true)
52 var_dump(arsort($temp_array, $flag) ); // expecting : bool(true)
61 *** Testing arsort() : usage variations ***
63 -- Testing arsort() by supplying various string arrays --
H A D002.phpt2 Test arsort, asort, krsort, ksort, rsort, and sort
27 foreach (array ('arsort', 'asort', 'krsort', 'ksort', 'rsort', 'sort') as $test_function) {
58 -- Testing arsort() --
/PHP-7.4/ext/standard/
H A Dphp_array.h33 PHP_FUNCTION(arsort);
H A Dbasic_functions.c3330 PHP_FE(arsort, arginfo_arsort)
H A Darray.c887 PHP_FUNCTION(arsort) in PHP_FUNCTION() argument

Completed in 40 milliseconds