Home
last modified time | relevance | path

Searched refs:sort (Results 1 – 25 of 180) sorted by relevance

12345678

/PHP-8.2/ext/standard/tests/array/
H A Dsort_variation4.phpt2 Test sort() function : usage variations - sort reference values
6 * Testing sort() by providing reference variable array with following flag values
12 echo "*** Testing sort() :usage variations ***\n";
23 var_dump( sort($temp_array) ); // expecting : bool(true)
26 echo "\n-- Testing sort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n";
28 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
33 var_dump( sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
39 *** Testing sort() :usage variations ***
41 -- Testing sort() by supplying reference variable array, 'flag' value is default --
52 -- Testing sort() by supplying reference variable array, 'flag' = SORT_REGULAR --
[all …]
H A Dsort_variation7.phpt2 Test sort() function : usage variations - sort boolean values
11 echo "*** Testing sort() : usage variations ***\n";
18 var_dump(sort($temp_array) );
23 var_dump(sort($temp_array, SORT_REGULAR) );
28 var_dump(sort($temp_array, SORT_NUMERIC) );
33 var_dump(sort($temp_array, SORT_STRING) );
39 *** Testing sort() : usage variations ***
41 -- Testing sort() by supplying bool value array, 'flag' value is default --
54 -- Testing sort() by supplying bool value array, 'flag' value is SORT_REGULAR --
67 -- Testing sort() by supplying bool value array, 'flag' value is SORT_NUMERIC --
[all …]
H A Dsort_basic.phpt2 Test sort() function : basic functionality
6 * Testing sort() by providing arrays with default keys and assoc arrays
14 echo "*** Testing sort() : basic functionality ***\n";
28 var_dump( sort($temp_array) ); // expecting : bool(true)
33 var_dump( sort($temp_array) ); // expecting : bool(true)
38 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
43 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
48 var_dump( sort($temp_array, SORT_STRING) ); // expecting : bool(true)
58 var_dump( sort($temp_array, SORT_NATURAL) ); // expecting : bool(true)
74 *** Testing sort() : basic functionality ***
[all …]
H A Dsort_variation10.phpt2 Test sort() function : usage variations - sort octal values
6 * testing sort() by providing different octal array for $array argument
13 echo "*** Testing sort() : usage variations ***\n";
18 echo "\n-- Testing sort() by supplying octal value array, 'flag' value is default --\n";
20 var_dump(sort($temp_array) ); // expecting : bool(true)
25 var_dump(sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
30 var_dump(sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
36 *** Testing sort() : usage variations ***
38 -- Testing sort() by supplying octal value array, 'flag' value is default --
61 -- Testing sort() by supplying octal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Dsort_variation8.phpt2 Test sort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as default…
11 echo "*** Testing sort() : usage variations ***\n";
32 // loop through to test sort() with different arrays
37 echo "- With Default sort flag -\n";
39 var_dump(sort($temp_array) );
45 var_dump(sort($temp_array, SORT_REGULAR) );
53 *** Testing sort() : usage variations ***
58 - With Default sort flag -
68 - With Default sort flag -
84 - With Default sort flag -
[all …]
H A Dsort_variation6.phpt2 Test sort() function : usage variations - sort hexadecimal values
6 …* testing sort() by providing different hexa-decimal array for $array argument with following flag…
12 echo "*** Testing sort() : usage variations ***\n";
17 echo "\n-- Testing sort() by supplying hexadecimal value array, 'flag' value is default --\n";
19 var_dump(sort($temp_array) ); // expecting : bool(true)
24 var_dump(sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
29 var_dump(sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
35 *** Testing sort() : usage variations ***
37 -- Testing sort() by supplying hexadecimal value array, 'flag' value is default --
64 -- Testing sort() by supplying hexadecimal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Darray_multisort_variation1.phpt112 array_multisort(): Argument #1 ($array) must be a valid sort flag
115 array_multisort(): Argument #1 ($array) must be a valid sort flag
118 array_multisort(): Argument #1 ($array) must be an array or a sort flag
121 array_multisort(): Argument #1 ($array) must be an array or a sort flag
124 array_multisort(): Argument #1 ($array) must be an array or a sort flag
127 array_multisort(): Argument #1 ($array) must be an array or a sort flag
130 array_multisort(): Argument #1 ($array) must be an array or a sort flag
133 array_multisort(): Argument #1 ($array) must be an array or a sort flag
136 array_multisort(): Argument #1 ($array) must be an array or a sort flag
139 array_multisort(): Argument #1 ($array) must be an array or a sort flag
[all …]
H A Darray_multisort_variation3.phpt112 array_multisort(): Argument #3 must be a valid sort flag
115 array_multisort(): Argument #3 must be a valid sort flag
118 array_multisort(): Argument #3 must be an array or a sort flag
121 array_multisort(): Argument #3 must be an array or a sort flag
124 array_multisort(): Argument #3 must be an array or a sort flag
127 array_multisort(): Argument #3 must be an array or a sort flag
130 array_multisort(): Argument #3 must be an array or a sort flag
133 array_multisort(): Argument #3 must be an array or a sort flag
136 array_multisort(): Argument #3 must be an array or a sort flag
139 array_multisort(): Argument #3 must be an array or a sort flag
[all …]
H A Darray_change_key_case_variation4.phpt23 -- $sort argument is -5 --
33 -- $sort argument is -4 --
43 -- $sort argument is -3 --
53 -- $sort argument is -2 --
63 -- $sort argument is -1 --
73 -- $sort argument is 0 --
83 -- $sort argument is 1 --
93 -- $sort argument is 2 --
103 -- $sort argument is 3 --
113 -- $sort argument is 4 --
[all …]
H A Dsort_variation9.phpt2 Test sort() function : usage variations - sort diff. associative arrays, 'sort_flags' as default/SO…
13 echo "*** Testing sort() : usage variations ***\n";
35 echo "- With Default sort flag -\n";
37 var_dump(sort($temp_array) );
42 var_dump(sort($temp_array, SORT_REGULAR) );
50 *** Testing sort() : usage variations ***
55 - With Default sort flag -
85 - With Default sort flag -
161 - With Default sort flag -
195 - With Default sort flag -
[all …]
H A Darray_multisort_variation2.phpt120 array_multisort(): Argument #2 must be a valid sort flag
123 array_multisort(): Argument #2 must be a valid sort flag
126 array_multisort(): Argument #2 must be an array or a sort flag
129 array_multisort(): Argument #2 must be an array or a sort flag
132 array_multisort(): Argument #2 must be an array or a sort flag
135 array_multisort(): Argument #2 must be an array or a sort flag
138 array_multisort(): Argument #2 must be an array or a sort flag
153 array_multisort(): Argument #2 must be an array or a sort flag
156 array_multisort(): Argument #2 must be an array or a sort flag
159 array_multisort(): Argument #2 must be an array or a sort flag
[all …]
H A Dsort_variation3.phpt2 Test sort() function : usage variations - sort integer/float values
14 echo "*** Testing sort() : usage variations ***\n";
37 // loop through to test sort() with different arrays
41 echo "- With Default sort flag -\n";
43 var_dump(sort($temp_array) );
50 var_dump(sort($temp_array, $flag) );
59 *** Testing sort() : usage variations ***
64 - With Default sort flag -
132 - With Default sort flag -
188 - With Default sort flag -
[all …]
H A Dsort_variation11.phpt2 Test sort() function : usage variations - sort mixed values, 'sort_flag' as default/SORT_REGULAR (O…
6 * testing sort() by providing mixed value array for $array argument with following flag values.
11 echo "*** Testing sort() : usage variations ***\n";
21 echo "\n-- Testing sort() by supplying mixed value array, 'flag' value is default --\n";
23 var_dump(sort($temp_array) );
26 echo "\n-- Testing sort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n";
28 var_dump(sort($temp_array, SORT_REGULAR) );
34 *** Testing sort() : usage variations ***
36 -- Testing sort() by supplying mixed value array, 'flag' value is default --
111 -- Testing sort() by supplying mixed value array, 'flag' value is SORT_REGULAR --
H A Dsort_variation5.phpt2 Test sort() function : usage variations - sort strings
12 echo "*** Testing sort() : usage variations ***\n";
25 echo "\n-- Testing sort() by supplying various string arrays --\n";
27 // loop through to test sort() with different arrays
31 echo "- With Default sort flag -\n";
33 var_dump(sort($temp_array) ); // expecting : bool(true)
40 var_dump(sort($temp_array, $flag) ); // expecting : bool(true)
49 *** Testing sort() : usage variations ***
51 -- Testing sort() by supplying various string arrays --
54 - With Default sort flag -
[all …]
H A Dsort_object1.phpt2 Test sort() function : object functionality - sorting objects, 'sort_flags' as default/SORT_REGULAR
9 echo "*** Testing sort() : object functionality ***\n";
56 // testing sort() function by supplying integer object array, flag value is default
58 var_dump(sort($temp_array) );
61 // testing sort() function by supplying string object array, flag value is default
63 var_dump(sort($temp_array) );
69 var_dump(sort($temp_array, SORT_REGULAR) );
72 // testing sort() function by supplying string object array, flag value = SORT_REGULAR
74 var_dump(sort($temp_array, SORT_REGULAR) );
80 *** Testing sort() : object functionality ***
[all …]
H A Dsort_object2.phpt2 Test sort() function : object functionality - sorting objects with diff. accessibility of member va…
9 echo "*** Testing sort() : object functionality ***\n";
65 // testing sort() function by supplying integer object array, flag value is default
67 var_dump(sort($temp_array) );
70 // testing sort() function by supplying string object array, flag value is default
72 var_dump(sort($temp_array) );
78 var_dump(sort($temp_array, SORT_REGULAR) );
81 // testing sort() function by supplying string object array, flag value = SORT_REGULAR
83 var_dump(sort($temp_array, SORT_REGULAR) );
89 *** Testing sort() : object functionality ***
[all …]
H A Dkrsort_variation9.phpt2 Test krsort() function : usage variations - sort array with/without key values
32 echo "- With default sort flag -\n";
52 - With default sort flag -
82 - With default sort flag -
104 - With default sort flag -
138 - With default sort flag -
160 - With default sort flag -
194 - With default sort flag -
212 - With default sort flag -
H A Dkrsort_variation7.phpt2 Test krsort() function : usage variations - sort array with diff. sub arrays
38 echo "- With default sort flag -\n";
58 - With default sort flag -
68 - With default sort flag -
84 - With default sort flag -
116 - With default sort flag -
H A Dksort_variation7.phpt2 Test ksort() function : usage variations - sort array with diff. sub arrays
38 echo "- With default sort flag -\n";
58 - With default sort flag -
68 - With default sort flag -
84 - With default sort flag -
116 - With default sort flag -
/PHP-8.2/ext/standard/tests/strings/
H A Dhttp_build_query_variation2.phpt17 "sort" => array(
33 …string&name=homepage&page=10&sort%5B0%5D=desc&sort%5Badmin%5D%5B0%5D=admin1&sort%5Badmin%5D%5Badmi…
34 …string&name=homepage&page=10&sort%5B0%5D=desc&sort%5Badmin%5D%5B0%5D=admin1&sort%5Badmin%5D%5Badmi…
H A Dhttp_build_query_variation1.phpt11 protected $sort = 'desc,name';
18 $obj->sort = 'desc,name';
24 name=homepage&page=1&sort=desc%2Cname
H A Dhttp_build_query_variation3.phpt9 "sort" => "desc,admin",
17 name=main+page&sort=desc%2Cadmin&equation=10+%2B+10+-+5
18 name=main%20page&sort=desc%2Cadmin&equation=10%20%2B%2010%20-%205
/PHP-8.2/Zend/tests/
H A Dcall_user_func_009.phpt8 var_dump(call_user_func('sort', []));
9 var_dump(\call_user_func('sort', []));
13 Warning: sort(): Argument #1 ($array) must be passed by reference, value given in %s on line %d
16 Warning: sort(): Argument #1 ($array) must be passed by reference, value given in %s on line %d
/PHP-8.2/ext/standard/tests/general_functions/
H A Dbug41970.phpt8 var_dump(call_user_func_array("sort", array($a)));
14 var_dump(call_user_func("sort", $a));
24 Warning: sort(): Argument #1 ($array) must be passed by reference, value given in %s on line %d
28 Warning: sort(): Argument #1 ($array) must be passed by reference, value given in %s on line %d
/PHP-8.2/ext/reflection/tests/
H A DReflectionFunction_getNamespaceName.phpt8 $function = new \ReflectionFunction('sort');
22 string(4) "sort"
24 string(4) "sort"

Completed in 35 milliseconds

12345678