Home
last modified time | relevance | path

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

1234567

/PHP-5.3/ext/standard/tests/array/
H A Dsort_variation1.phpt2 Test sort() function : usage variations - unexpected values for 'array_arg' argument
5 /* Prototype : bool sort(array &array_arg [, int $sort_flags])
11 * testing sort() by providing different unexpected values for array argument
19 echo "*** Testing sort() : usage variations ***\n";
75 // loop though each element of the array and check the working of sort()
84 var_dump( sort($value) ); // expecting : bool(false)
85 var_dump( sort($value, SORT_REGULAR) ); // expecting : bool(false)
86 var_dump( sort($value, SORT_NUMERIC) ); // expecting : bool(false)
87 var_dump( sort($value, SORT_STRING) ); // expecting : bool(false)
94 *** Testing sort() : usage variations ***
[all …]
H A Dsort_basic.phpt2 Test sort() function : basic functionality
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
12 * Testing sort() by providing arrays with default keys and assoc arrays
20 echo "*** Testing sort() : basic functionality ***\n";
30 var_dump( sort($temp_array) ); // expecting : bool(true)
35 var_dump( sort($temp_array) ); // expecting : bool(true)
40 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
45 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
50 var_dump( sort($temp_array, SORT_STRING) ); // expecting : bool(true)
61 *** Testing sort() : basic functionality ***
[all …]
H A Dsort_error.phpt2 Test sort() function : error conditions
5 /* Prototype : bool sort(array &array_arg [, int sort_flags])
11 * Testing sort() function with all possible error conditions
14 echo "*** Testing sort() : error conditions ***\n";
17 echo "\n-- Testing sort() function with Zero arguments --\n";
18 var_dump( sort() );
20 //Test sort with more than the expected number of arguments
29 var_dump( sort($array_arg,$flag, $extra_arg) );
38 *** Testing sort() : error conditions ***
40 -- Testing sort() function with Zero arguments --
[all …]
H A Dsort_variation4.phpt2 Test sort() function : usage variations - sort reference values
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
12 * Testing sort() by providing reference variable array with following flag values
18 echo "*** Testing sort() :usage variations ***\n";
29 var_dump( sort($temp_array) ); // expecting : bool(true)
34 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
39 var_dump( sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
45 *** Testing sort() :usage variations ***
47 -- Testing sort() by supplying reference variable array, 'flag' value is defualt --
58 -- Testing sort() by supplying reference variable array, 'flag' = SORT_REGULAR --
[all …]
H A Dsort_variation7.phpt2 Test sort() function : usage variations - sort boolean values
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
17 echo "*** Testing sort() : usage variations ***\n";
24 var_dump(sort($temp_array) );
29 var_dump(sort($temp_array, SORT_REGULAR) );
34 var_dump(sort($temp_array, SORT_NUMERIC) );
39 var_dump(sort($temp_array, SORT_STRING) );
45 *** Testing sort() : usage variations ***
47 -- Testing sort() by supplying bool value array, 'flag' value is defualt --
60 -- Testing sort() by supplying bool 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 defualt…
17 echo "*** Testing sort() : usage variations ***\n";
38 // loop through to test sort() with different arrays
43 echo "- With Defualt sort flag -\n";
45 var_dump(sort($temp_array) );
51 var_dump(sort($temp_array, SORT_REGULAR) );
59 *** Testing sort() : usage variations ***
64 - With Defualt sort flag -
74 - With Defualt sort flag -
90 - With Defualt sort flag -
[all …]
H A Dsort_variation10.phpt2 Test sort() function : usage variations - sort octal values
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
12 * testing sort() by providing different octal array for $array argument
19 echo "*** Testing sort() : usage variations ***\n";
26 var_dump(sort($temp_array) ); // expecting : bool(true)
31 var_dump(sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
36 var_dump(sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
42 *** Testing sort() : usage variations ***
44 -- Testing sort() by supplying octal value array, 'flag' value is defualt --
67 -- Testing sort() by supplying octal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Dsort_variation6.phpt2 Test sort() function : usage variations - sort hexadecimal values
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
18 echo "*** Testing sort() : usage variations ***\n";
23 echo "\n-- Testing sort() by supplying hexadecimal value array, 'flag' value is defualt --\n";
25 var_dump(sort($temp_array) ); // expecting : bool(true)
30 var_dump(sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
35 var_dump(sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
41 *** Testing sort() : usage variations ***
43 -- Testing sort() by supplying hexadecimal value array, 'flag' value is defualt --
70 -- Testing sort() by supplying hexadecimal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Darray_change_key_case_variation4.phpt29 -- $sort argument is -5 --
39 -- $sort argument is -4 --
49 -- $sort argument is -3 --
59 -- $sort argument is -2 --
69 -- $sort argument is -1 --
79 -- $sort argument is 0 --
89 -- $sort argument is 1 --
99 -- $sort argument is 2 --
109 -- $sort argument is 3 --
119 -- $sort argument is 4 --
[all …]
H A Dsort_variation9.phpt2 Test sort() function : usage variations - sort diff. associative arrays, 'sort_flags' as defualt/SO…
19 echo "*** Testing sort() : usage variations ***\n";
41 echo "- With Defualt sort flag -\n";
43 var_dump(sort($temp_array) );
48 var_dump(sort($temp_array, SORT_REGULAR) );
56 *** Testing sort() : usage variations ***
61 - With Defualt sort flag -
91 - With Defualt sort flag -
167 - With Defualt sort flag -
201 - With Defualt sort flag -
[all …]
H A Dsort_variation3.phpt2 Test sort() function : usage variations - sort integer/float values
20 echo "*** Testing sort() : usage variations ***\n";
43 // loop through to test sort() with different arrays
47 echo "- With Defualt sort flag -\n";
49 var_dump(sort($temp_array) );
56 var_dump(sort($temp_array, $flag) );
65 *** Testing sort() : usage variations ***
70 - With Defualt sort flag -
138 - With Defualt sort flag -
194 - With Defualt sort flag -
[all …]
H A Dsort_variation2.phpt2 Test sort() function : usage variations - unexpected values for 'sort_flags' argument
5 /* Prototype : bool sort(array &array_arg [, int $sort_flags])
11 * Testing sort() by providing different unexpected values for flag argument
14 echo "*** Testing sort() : usage variations ***\n";
71 // loop though each element of the array and check the working of sort()
79 // sort the array, retain a temp. copy of input array for next iteration
82 var_dump( sort($temp_array, $value) );
92 *** Testing sort() : usage variations ***
217 Warning: sort() expects parameter 2 to be long, string given in %s on line %d
229 Warning: sort() expects parameter 2 to be long, string given in %s on line %d
[all …]
H A Dsort_variation11.phpt2 Test sort() function : usage variations - sort mixed values, 'sort_flag' as defualt/SORT_REGULAR (O…
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
12 * testing sort() by providing mixed value array for $array argument with following flag values.
17 echo "*** Testing sort() : usage variations ***\n";
27 echo "\n-- Testing sort() by supplying mixed value array, 'flag' value is defualt --\n";
29 var_dump(sort($temp_array) );
32 echo "\n-- Testing sort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n";
34 var_dump(sort($temp_array, SORT_REGULAR) );
40 *** Testing sort() : usage variations ***
42 -- Testing sort() by supplying mixed value array, 'flag' value is defualt --
[all …]
H A Dsort_object1.phpt2 Test sort() function : object functionality - sorting objects, 'sort_flags' as default/SORT_REGULAR
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
14 echo "*** Testing sort() : object functionality ***\n";
61 // testing sort() function by supplying integer object array, flag value is defualt
63 var_dump(sort($temp_array) );
66 // testing sort() function by supplying string object array, flag value is defualt
68 var_dump(sort($temp_array) );
74 var_dump(sort($temp_array, SORT_REGULAR) );
79 var_dump(sort($temp_array, SORT_REGULAR) );
85 *** Testing sort() : object functionality ***
[all …]
H A Dsort_variation5.phpt2 Test sort() function : usage variations - sort strings
10 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
23 echo "*** Testing sort() : usage variations ***\n";
36 echo "\n-- Testing sort() by supplying various string arrays --\n";
38 // loop through to test sort() with different arrays
42 echo "- With Default sort flag -\n";
44 var_dump(sort($temp_array) ); // expecting : bool(true)
60 *** Testing sort() : usage variations ***
62 -- Testing sort() by supplying various string arrays --
65 - With Default sort flag -
[all …]
H A Darray_multisort_variation1.phpt117 Error: 2 - array_multisort(): Argument #1 is an unknown sort flag, %sarray_multisort_variation1.php…
121 Error: 2 - array_multisort(): Argument #1 is an unknown sort flag, %sarray_multisort_variation1.php…
125 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
129 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
133 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
137 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
141 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
145 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
149 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
153 Error: 2 - array_multisort(): Argument #1 is expected to be an array or a sort flag, %sarray_multis…
[all …]
H A Darray_multisort_variation2.phpt123 Error: 2 - array_multisort(): Argument #2 is an unknown sort flag, %sarray_multisort_variation2.php…
127 Error: 2 - array_multisort(): Argument #2 is an unknown sort flag, %sarray_multisort_variation2.php…
131 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
135 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
139 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
143 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
147 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
166 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
170 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
174 Error: 2 - array_multisort(): Argument #2 is expected to be an array or a sort flag, %sarray_multis…
[all …]
H A Darray_multisort_variation3.phpt118 Error: 2 - array_multisort(): Argument #3 is an unknown sort flag, %sarray_multisort_variation3.php…
122 Error: 2 - array_multisort(): Argument #3 is an unknown sort flag, %sarray_multisort_variation3.php…
126 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
130 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
134 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
138 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
142 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
146 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
150 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
154 Error: 2 - array_multisort(): Argument #3 is expected to be an array or a sort flag, %sarray_multis…
[all …]
H A Dsort_object2.phpt2 Test sort() function : object functionality - sorting objects with diff. accessibility of member va…
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
15 echo "*** Testing sort() : object functionality ***\n";
71 // testing sort() function by supplying integer object array, flag value is defualt
73 var_dump(sort($temp_array) );
76 // testing sort() function by supplying string object array, flag value is defualt
78 var_dump(sort($temp_array) );
84 var_dump(sort($temp_array, SORT_REGULAR) );
89 var_dump(sort($temp_array, SORT_REGULAR) );
95 *** Testing sort() : object functionality ***
[all …]
H A Dkrsort_variation9.phpt2 Test krsort() function : usage variations - sort array with/without key values
37 echo "- With defualt sort flag -\n";
57 - With defualt sort flag -
87 - With defualt sort flag -
109 - With defualt sort flag -
143 - With defualt sort flag -
165 - With defualt sort flag -
199 - With defualt sort flag -
217 - With defualt sort flag -
H A Dksort_variation3.phpt2 Test ksort() function : usage variations - sort integer/float values
20 // diff. associative arrays to sort
43 echo "- With defualt sort flag -\n";
48 // loop through $flags array and call ksort() with all possible sort flag values
66 - With defualt sort flag -
134 - With defualt sort flag -
184 - With defualt sort flag -
H A Dksort_variation9.phpt36 echo "- With defualt sort flag -\n";
56 - With defualt sort flag -
86 - With defualt sort flag -
108 - With defualt sort flag -
142 - With defualt sort flag -
164 - With defualt sort flag -
198 - With defualt sort flag -
216 - With defualt sort flag -
H A Dkrsort_variation7.phpt2 Test krsort() function : usage variations - sort array with diff. sub arrays
43 echo "- With defualt sort flag -\n";
63 - With defualt sort flag -
73 - With defualt sort flag -
89 - With defualt sort flag -
121 - With defualt sort flag -
/PHP-5.3/ext/standard/tests/general_functions/
H A Dbug41970.phpt8 var_dump(call_user_func_array("sort", array($a)));
10 var_dump(call_user_func("sort", $a));
16 Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line 5
22 Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line 7
/PHP-5.3/ext/reflection/tests/
H A DReflectionFunction_getNamespaceName.phpt8 $function = new \ReflectionFunction('sort');
22 string(4) "sort"
24 string(4) "sort"

Completed in 40 milliseconds

1234567