Home
last modified time | relevance | path

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

/php-src/ext/standard/tests/array/sort/
H A Darsort_variation4.phpt2 Test arsort() function : usage variations - sort reference variables
6 * Testing arsort() by providing reference variable array with following flag values
12 echo "*** Testing arsort() :usage variations ***\n";
23 var_dump( arsort($temp_array) ); // expecting : bool(true)
26 echo "\n-- Testing arsort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n";
28 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
33 var_dump( arsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
39 *** Testing arsort() :usage variations ***
41 -- Testing arsort() by supplying reference variable array, 'flag' value is default --
52 -- Testing arsort() by supplying reference variable array, 'flag' = SORT_REGULAR --
[all …]
H A Darsort_basic.phpt2 Test arsort() function : basic functionality
14 echo "*** Testing arsort() : basic functionality ***\n";
27 var_dump( arsort($temp_array) ); // expecting : bool(true)
32 var_dump( arsort($temp_array) ); // expecting : bool(true)
37 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
42 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
47 var_dump( arsort($temp_array, SORT_STRING) ); // expecting : bool(true)
57 var_dump( arsort($temp_array, SORT_NATURAL) ); // expecting : bool(true)
73 *** Testing arsort() : basic functionality ***
109 -- Testing arsort() by supplying string array, 'flag' = SORT_REGULAR --
[all …]
H A Darsort_variation7.phpt2 Test arsort() function : usage variations - sort bool values
11 echo "*** Testing arsort() : usage variations ***\n";
18 var_dump(arsort($temp_array) );
23 var_dump(arsort($temp_array, SORT_REGULAR) );
28 var_dump(arsort($temp_array, SORT_NUMERIC) );
33 var_dump(arsort($temp_array, SORT_STRING) );
39 *** Testing arsort() : usage variations ***
41 -- Testing arsort() by supplying bool value array, 'flag' value is default --
54 -- Testing arsort() by supplying bool value array, 'flag' value is SORT_REGULAR --
67 -- Testing arsort() by supplying bool value array, 'flag' value is SORT_NUMERIC --
[all …]
H A Darsort_variation10.phpt2 Test arsort() function : usage variations - sort octal values
6 …* testing arsort() by providing different octal array for $array argument with following flag valu…
12 echo "*** Testing arsort() : usage variations ***\n";
20 echo "\n-- Testing arsort() by supplying octal value array, 'flag' value is default --\n";
22 var_dump( arsort($temp_array) ); // expecting : bool(true)
27 var_dump( arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
32 var_dump( arsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
38 *** Testing arsort() : usage variations ***
40 -- Testing arsort() by supplying octal value array, 'flag' value is default --
63 -- 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
6 …* testing arsort() by providing different hexa-decimal array for $array argument with following fl…
12 echo "*** Testing arsort() : usage variations ***\n";
20 echo "\n-- Testing arsort() by supplying hexadecimal value array, 'flag' value is default --\n";
22 var_dump(arsort($temp_array) ); // expecting : bool(true)
27 var_dump(arsort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
32 var_dump(arsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
38 *** Testing arsort() : usage variations ***
40 -- Testing arsort() by supplying hexadecimal value array, 'flag' value is default --
63 -- 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
6 * testing arsort() by providing integer/string object arrays with following flag values
11 echo "*** Testing arsort() : object functionality ***\n";
58 // testing arsort() function by supplying integer object array, flag value is default
60 var_dump(arsort($temp_array) );
63 // testing arsort() function by supplying string object array, flag value is default
65 var_dump(arsort($temp_array) );
71 var_dump(arsort($temp_array, SORT_REGULAR) );
76 var_dump(arsort($temp_array, SORT_REGULAR) );
82 *** 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…
6 …* testing arsort() by providing arrays contains sub arrays for $array argument with flowing flag v…
12 echo "*** Testing arsort() : usage variations ***\n";
32 echo "\n-- Testing arsort() by supplying various arrays containing sub arrays --\n";
34 // loop through to test arsort() with different arrays
38 // testing arsort() function by supplying different arrays, flag value is default
41 var_dump(arsort($temp_array) );
44 // testing arsort() function by supplying different arrays, flag value = SORT_REGULAR
47 var_dump(arsort($temp_array, SORT_REGULAR) );
55 *** Testing arsort() : usage variations ***
[all …]
H A Darsort_variation11.phpt2 Test arsort() function : usage variations - sort mixed values, 'sort_flags' as default/SORT_REGULAR…
6 * testing arsort() by providing mixed value array for $array argument with following flag values.
11 echo "*** Testing arsort() : usage variations ***\n";
25 echo "\n-- Testing arsort() by supplying mixed value array, 'flag' value is default --\n";
27 var_dump( arsort($temp_array) );
30 echo "\n-- Testing arsort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n";
32 var_dump( arsort($temp_array, SORT_REGULAR) );
38 *** Testing arsort() : usage variations ***
40 -- Testing arsort() by supplying mixed value array, 'flag' value is default --
97 -- Testing arsort() by supplying mixed value array, 'flag' value is SORT_REGULAR --
H A Darsort_object2.phpt2 Test arsort() function : object functionality - sorting objects with diff. accessibility of member …
6 * testing arsort() by providing integer/string object arrays with following flag values
11 echo "*** Testing arsort() : object functionality ***\n";
62 // testing arsort() function by supplying integer object array, flag value is default
64 var_dump(arsort($temp_array) );
67 // testing arsort() function by supplying string object array, flag value is default
69 var_dump(arsort($temp_array) );
75 var_dump(arsort($temp_array, SORT_REGULAR) );
80 var_dump(arsort($temp_array, SORT_REGULAR) );
86 *** Testing arsort() : object functionality ***
[all …]
H A Darsort_variation9.phpt2 Test arsort() function : usage variations - sorting arrays with/without keys, 'sort_flags' as defau…
6 …* Testing arsort() by providing arrays with key values for $array argument with following flag va…
11 echo "*** Testing arsort() : usage variations ***\n";
25 echo "\n-- Testing arsort() by supplying various arrays with key values --\n";
27 // loop through to test arsort() with different arrays,
34 var_dump(arsort($temp_array) );
39 var_dump(arsort($temp_array, SORT_REGULAR) );
47 *** Testing arsort() : usage variations ***
49 -- Testing arsort() by supplying various arrays with key values --
H A Darsort_variation3.phpt2 Test arsort() function : usage variations - sort integer/float values
6 …* Testing arsort() by providing different integer/float value arrays for $array argument with foll…
12 echo "*** Testing arsort() : usage variations ***\n";
33 echo "\n-- Testing arsort() by supplying various integer/float arrays --\n";
35 // loop through to test arsort() with different arrays
41 var_dump(arsort($temp_array) );
48 var_dump(arsort($temp_array, $flag) );
57 *** Testing arsort() : usage variations ***
59 -- Testing arsort() by supplying various integer/float arrays --
H A Darsort_variation_escape_sequences.phpt2 Test arsort() function: sorting escape sequences
36 var_dump(arsort($temp_array)); // expecting : bool(true)
41 var_dump(arsort($temp_array, SORT_REGULAR)); // expecting : bool(true)
46 var_dump(arsort($temp_array, SORT_STRING)); // expecting : bool(true)
H A Darsort_variation5.phpt2 Test arsort() function : usage variations - sort strings
23 var_dump(arsort($temp_array)); // expecting : bool(true)
28 var_dump(arsort($temp_array, SORT_REGULAR)); // expecting : bool(true)
33 var_dump(arsort($temp_array, SORT_STRING)); // expecting : bool(true)
H A Dinternal_sorts_basic.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-src/Zend/tests/
H A Dbug63882_2.phpt2 Bug #63882_2 (arsort crash on recursion)
16 arsort($a);
/php-src/ext/standard/
H A Dbasic_functions.stub.php1588 function arsort(array &$array, int $flags = SORT_REGULAR): true {} function
H A Dbasic_functions_arginfo.h2317 ZEND_FUNCTION(arsort);
2909 ZEND_FE(arsort, arginfo_arsort)
H A Darray.c748 PHP_FUNCTION(arsort) in PHP_FUNCTION() argument
/php-src/build/
H A Dgen_stub.php6244 arsort($parameterStats);

Completed in 85 milliseconds