Searched refs:ksort (Results 1 – 25 of 37) sorted by relevance
12
2 Test ksort() function : usage variations - unexpected values for 'array' argument5 /* 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 …]
2 Test ksort() function : basic functionality 5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )18 echo "*** Testing ksort() : basic functionality ***\n";27 var_dump( ksort($temp_array) ); // expecting : bool(true)32 var_dump( ksort($temp_array) ); // expecting : bool(true)37 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)42 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)47 var_dump( ksort($temp_array, SORT_STRING) ); // expecting : bool(true)58 *** Testing ksort() : basic functionality ***84 -- Testing ksort() by supplying string array, 'flag' = SORT_REGULAR --[all …]
2 Test ksort() function : usage variations - sort bool values5 /* 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 …]
2 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 arguments30 var_dump( ksort($temp_array,$flag, $extra_arg) );37 *** Testing ksort() : error conditions ***39 -- Testing ksort() function with Zero arguments --[all …]
2 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 …]
2 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 with18 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 …]
2 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 …]
2 Test ksort() function : usage variations - unexpected values for 'sort_flags' argument5 /* Prototype : bool ksort(array &array_arg [, int sort_flags])11 * Testing ksort() by providing different unexpected values for flag argument14 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 %d225 Warning: ksort() expects parameter 2 to be long, string given in %s on line %d237 Warning: ksort() expects parameter 2 to be long, string given in %s on line %d[all …]
2 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 …]
2 Test ksort() function : object functionality - sort objects5 /* 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 defualt62 var_dump(ksort($temp_array) );65 // testing ksort() function by supplying string object array, flag value is defualt67 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 …]
2 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 arrays45 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 --
2 Test ksort() function : usage variations - sort integer/float values5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )11 * Testing ksort() by providing array of integer/float/mixed values for $array argument18 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 arrays45 var_dump(ksort($temp_array) );48 // loop through $flags array and call ksort() with all possible sort flag values52 var_dump(ksort($temp_array, $flag) );61 *** Testing ksort() : usage variations ***[all …]
2 Test ksort() function : usage variations - sorting arrays with/without keys5 /* 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 --
2 Test ksort() function : usage variations - sort strings10 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )16 * testing ksort() by providing array of string values for $array argument with23 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 arrays50 var_dump(ksort($temp_array) ); // expecting : bool(true)53 // loop through $flags array and call ksort() with all possible sort flag values57 var_dump(ksort($temp_array, $flag) ); // expecting : bool(true)66 *** Testing ksort() : usage variations ***[all …]
2 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'));22 *** Testing ArrayObject::ksort() : basic functionality ***
2 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 ***
82 ksort($extensions);85 ksort($classes);88 ksort($methods);
8 ksort($arr);15 ksort($arr);
14 ksort($arr);21 ksort($arr);
9 ksort($arr);16 ksort($arr);
15 ksort($arr);22 ksort($arr);
26 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);
8 ksort($a);
16 ksort($results);
656 function ksort() {/**/} function in ArrayObject777 function ksort() {/**/} function in ArrayIterator
Completed in 26 milliseconds