Home
last modified time | relevance | path

Searched refs:ksort (Results 1 – 25 of 40) sorted by relevance

12

/PHP-5.4/ext/standard/tests/array/
H A Dksort_variation1.phpt2 Test ksort() function : usage variations - unexpected values for 'array' argument
5 /* Prototype : bool ksort(array &array [, int sort_flags])
18 echo "*** Testing ksort() : usage variations ***\n";
74 // loop though each element of the array and check the working of ksort()
83 var_dump( ksort($value) ); // expecting : bool(false)
84 var_dump( ksort($value, SORT_REGULAR) ); // expecting : bool(false)
85 var_dump( ksort($value, SORT_NUMERIC) ); // expecting : bool(false)
86 var_dump( ksort($value, SORT_STRING) ); // expecting : bool(false)
93 *** Testing ksort() : usage variations ***
217 Warning: ksort() expects parameter 1 to be array, null given in %s on line %d
[all …]
H A Dksort_variation4.phpt2 Test ksort() function : usage variations - sort bool values
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
16 echo "*** Testing ksort() : usage variations ***\n";
23 var_dump(ksort($temp_array) );
28 var_dump(ksort($temp_array, SORT_REGULAR) );
33 var_dump(ksort($temp_array, SORT_NUMERIC) );
38 var_dump(ksort($temp_array, SORT_STRING) );
44 *** Testing ksort() : usage variations ***
46 -- Testing ksort() by supplying boolean value array, 'flag' value is defualt --
55 -- Testing ksort() by supplying boolean value array, 'flag' value is SORT_REGULAR --
[all …]
H A Dksort_error.phpt2 Test ksort() function : error conditions
5 /* Prototype : bool ksort(array &array_arg [, int sort_flags])
11 * Testing ksort() function with all possible error conditions
14 echo "*** Testing ksort() : error conditions ***\n";
17 echo "\n-- Testing ksort() function with Zero arguments --\n";
18 var_dump( ksort() );
20 //Test ksort with more than the expected number of arguments
30 var_dump( ksort($temp_array,$flag, $extra_arg) );
37 *** Testing ksort() : error conditions ***
39 -- Testing ksort() function with Zero arguments --
[all …]
H A Dksort_basic.phpt2 Test ksort() function : basic functionality
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
18 echo "*** Testing ksort() : basic functionality ***\n";
31 var_dump( ksort($temp_array) ); // expecting : bool(true)
36 var_dump( ksort($temp_array) ); // expecting : bool(true)
41 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
46 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
51 var_dump( ksort($temp_array, SORT_STRING) ); // expecting : bool(true)
77 *** Testing ksort() : basic functionality ***
113 -- Testing ksort() by supplying string array, 'flag' = SORT_REGULAR --
[all …]
H A Dksort_variation10.phpt2 Test ksort() function : usage variations - sort octal values
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
17 echo "*** Testing ksort() : usage variations ***\n";
25 echo "\n-- Testing ksort() by supplying octal value array, 'flag' value is defualt --\n";
27 var_dump( ksort($temp_array) ); // expecting : bool(true)
32 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
37 var_dump( ksort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
43 *** Testing ksort() : usage variations ***
45 -- Testing ksort() by supplying octal value array, 'flag' value is defualt --
68 -- Testing ksort() by supplying octal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Dksort_variation11.phpt2 Test ksort() function : usage variations - sort heredoc strings
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
11 * testing ksort() by providing array of heredoc strings for $array argument with
18 echo "*** Testing ksort() : usage variations ***\n";
42 var_dump(ksort($temp_array) ); // expecting : bool(true)
47 var_dump(ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
52 var_dump(ksort($temp_array, SORT_STRING) ); // expecting : bool(true)
58 *** Testing ksort() : usage variations ***
60 -- Testing ksort() by supplying heredoc string array, 'flag' value is defualt --
73 -- Testing ksort() by supplying heredoc string array, 'flag' = SORT_REGULAR --
[all …]
H A Dksort_variation6.phpt2 Test ksort() function : usage variations - sort hexadecimal values
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
17 echo "*** Testing ksort() : usage variations ***\n";
26 echo "\n-- Testing ksort() by supplying hexadecimal value array, 'flag' value is defualt --\n";
28 var_dump(ksort( $temp_array) ); // expecting : bool(true)
33 var_dump(ksort( $temp_array, SORT_REGULAR) ); // expecting : bool(true)
38 var_dump(ksort( $temp_array, SORT_NUMERIC) ); // expecting : bool(true)
44 *** Testing ksort() : usage variations ***
46 -- Testing ksort() by supplying hexadecimal value array, 'flag' value is defualt --
69 -- Testing ksort() by supplying hexadecimal value array, 'flag' value is SORT_REGULAR --
[all …]
H A Dksort_variation2.phpt2 Test ksort() function : usage variations - unexpected values for 'sort_flags' argument
5 /* Prototype : bool ksort(array &array_arg [, int sort_flags])
11 * Testing ksort() by providing different unexpected values for flag argument
14 echo "*** Testing ksort() : usage variations ***\n";
71 // loop though each element of the array and check the working of ksort()
80 var_dump( ksort($temp_array, $value) );
88 *** Testing ksort() : usage variations ***
213 Warning: ksort() expects parameter 2 to be long, string given in %s on line %d
225 Warning: ksort() expects parameter 2 to be long, string given in %s on line %d
237 Warning: ksort() expects parameter 2 to be long, string given in %s on line %d
[all …]
H A Dksort_variation8.phpt2 Test ksort() function : usage variations - sort mixed values, 'sort_flags' as default/SORT_REGULAR …
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
11 …* testing ksort() by providing array of mixed values for $array argument with following flag value…
16 echo "*** Testing ksort() : usage variations ***\n";
30 echo "\n-- Testing ksort() by supplying mixed value array, 'flag' value is defualt --\n";
32 var_dump( ksort($temp_array) );
35 echo "\n-- Testing ksort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n";
37 var_dump( ksort($temp_array, SORT_REGULAR) );
43 *** Testing ksort() : usage variations ***
45 -- Testing ksort() by supplying mixed value array, 'flag' value is defualt --
[all …]
H A Dksort_object.phpt2 Test ksort() function : object functionality - sort objects
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
15 echo "*** Testing ksort() : object functionality ***\n";
60 // testing ksort() function by supplying integer object array, flag value is defualt
62 var_dump(ksort($temp_array) );
65 // testing ksort() function by supplying string object array, flag value is defualt
67 var_dump(ksort($temp_array) );
73 var_dump(ksort($temp_array, SORT_REGULAR) );
78 var_dump(ksort($temp_array, SORT_REGULAR) );
84 *** Testing ksort() : object functionality ***
[all …]
H A Dksort_variation7.phpt2 Test ksort() function : usage variations - sort array with diff. sub arrays
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
11 * testing ksort() by providing arrays containing sub arrays for $array argument
17 echo "*** Testing ksort() : usage variations ***\n";
37 echo "\n-- Testing ksort() by supplying various arrays containing sub arrays --\n";
39 // loop through to test ksort() with different arrays
45 var_dump( ksort($temp_array) );
50 var_dump( ksort($temp_array, SORT_REGULAR) );
58 *** Testing ksort() : usage variations ***
60 -- Testing ksort() by supplying various arrays containing sub arrays --
H A Dksort_variation3.phpt2 Test ksort() function : usage variations - sort integer/float values
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
11 * Testing ksort() by providing array of integer/float/mixed values for $array argument
18 echo "*** Testing ksort() : usage variations ***\n";
37 echo "\n-- Testing ksort() by supplying various integer/float arrays --\n";
39 // loop through to test ksort() with different arrays
45 var_dump(ksort($temp_array) );
48 // loop through $flags array and call ksort() with all possible sort flag values
52 var_dump(ksort($temp_array, $flag) );
61 *** Testing ksort() : usage variations ***
[all …]
H A Dksort_variation9.phpt2 Test ksort() function : usage variations - sorting arrays with/without keys
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
11 …* Testing ksort() by providing arrays with/without key values for $array argument with following …
16 echo "*** Testing ksort() : usage variations ***\n";
30 echo "\n-- Testing ksort() by supplying various arrays with/without key values --\n";
32 // loop through to test ksort() with different arrays,
38 var_dump( ksort($temp_array) );
43 var_dump( ksort($temp_array, SORT_REGULAR) );
51 *** Testing ksort() : usage variations ***
53 -- Testing ksort() by supplying various arrays with/without key values --
H A Dksort_variation5.phpt2 Test ksort() function : usage variations - sort strings
10 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
16 * testing ksort() by providing array of string values for $array argument with
23 echo "*** Testing ksort() : usage variations ***\n";
42 echo "\n-- Testing ksort() by supplying various string arrays --\n";
44 // loop through to test ksort() with different arrays
50 var_dump(ksort($temp_array) ); // expecting : bool(true)
53 // loop through $flags array and call ksort() with all possible sort flag values
57 var_dump(ksort($temp_array, $flag) ); // expecting : bool(true)
66 *** Testing ksort() : usage variations ***
[all …]
/PHP-5.4/ext/spl/tests/
H A DarrayObject_ksort_basic1.phpt2 SPL: Test ArrayObject::ksort() function : basic functionality with array based store
5 /* Prototype : int ArrayObject::ksort()
6 * Description: proto int ArrayIterator::ksort()
12 echo "*** Testing ArrayObject::ksort() : basic functionality ***\n";
15 var_dump($ao1->ksort());
17 var_dump($ao2->ksort('blah'));
19 var_dump($ao2->ksort(SORT_STRING));
24 *** Testing ArrayObject::ksort() : basic functionality ***
38 Warning: ksort() expects parameter 2 to be long, string given in %sarrayObject_ksort_basic1.php on …
H A DarrayObject_ksort_basic2.phpt2 SPL: Test ArrayObject::ksort() function : basic functionality with object base store
5 /* Prototype : int ArrayObject::ksort()
6 * Description: proto int ArrayIterator::ksort()
12 echo "*** Testing ArrayObject::ksort() : basic functionality ***\n";
22 var_dump($ao1->ksort());
27 *** Testing ArrayObject::ksort() : basic functionality ***
/PHP-5.4/scripts/dev/
H A Dsearch_underscores.php82 ksort($extensions);
85 ksort($classes);
88 ksort($methods);
/PHP-5.4/ext/phar/tests/cache_list/files/
H A Dwrite5.phar8 ksort($arr);
15 ksort($arr);
H A Dwrite5.phar.inc14 ksort($arr);
21 ksort($arr);
H A Dwrite6.phar9 ksort($arr);
16 ksort($arr);
H A Dwrite6.phar.inc15 ksort($arr);
22 ksort($arr);
/PHP-5.4/ext/mysqli/tests/
H A Dreflection_tools.inc26 ksort($tmp, SORT_STRING);
35 ksort($tmp, SORT_STRING);
42 ksort($properties, SORT_STRING);
48 ksort($properties, SORT_STRING);
54 ksort($constants, SORT_STRING);
97 // ksort($tmp, SORT_STRING);
/PHP-5.4/ext/standard/tests/strings/
H A D004.phpt8 ksort($a);
/PHP-5.4/ext/standard/html_tables/
H A Dhtml_table_gen.php339 ksort($mappy);
462 ksort($multicp_rows);
463 foreach ($multicp_rows as &$v) { ksort($v); }
/PHP-5.4/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt16 ksort($results);

Completed in 31 milliseconds

12