Home
last modified time | relevance | path

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

/PHP-7.3/ext/standard/tests/array/
H A Dnatcasesort_error.phpt2 Test natcasesort() function : error conditions - Pass incorrect number of args
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass incorrect number of arguments to natcasesort() to test behaviour
14 echo "*** Testing natcasesort() : error conditions ***\n";
17 echo "\n-- Testing natcasesort() function with Zero arguments --\n";
18 var_dump( natcasesort() );
20 // Test natcasesort with one more than the expected number of arguments
24 var_dump( natcasesort($array_arg, $extra_arg) );
29 *** Testing natcasesort() : error conditions ***
31 -- Testing natcasesort() function with Zero arguments --
[all …]
H A Dnatcasesort_variation1.phpt2 Test natcasesort() function : usage variations - Pass different data types as $array_arg arg
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass different data types as $array_arg argument to natcasesort() to test behaviour
14 echo "*** Testing natcasesort() : usage variation ***\n";
85 // loop through each element of $inputs to check the behavior of natcasesort()
89 var_dump( natcasesort($input) );
98 *** Testing natcasesort() : usage variation ***
102 Warning: natcasesort() expects parameter 1 to be array, int given in %s on line %d
107 Warning: natcasesort() expects parameter 1 to be array, int given in %s on line %d
112 Warning: natcasesort() expects parameter 1 to be array, int given in %s on line %d
[all …]
H A Dnatcasesort_variation6.phpt2 Test natcasesort() function : usage variations - referenced variables
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass an array of referenced varaibles to test how natcasesort() re-orders it
14 echo "*** Testing natcasesort() : usage variation ***\n";
22 var_dump( natcasesort($array) );
27 var_dump( natcasesort($array) );
33 *** Testing natcasesort() : usage variation ***
H A Dnatcasesort_variation10.phpt2 Test natcasesort() function : usage variations - position of internal array pointer
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Check position of internal array pointer after calling natcasesort()
14 echo "*** Testing natcasesort() : usage variations ***\n";
21 echo "\n-- Call natcasesort() --\n";
22 var_dump(natcasesort($array_arg));
31 *** Testing natcasesort() : usage variations ***
36 -- Call natcasesort() --
H A Dnatcasesort_variation8.phpt2 Test natcasesort() function : usage variations - octal values
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass an array of octal values to test how natcasesort() re-orders it
14 echo "*** Testing natcasesort() : usage variation ***\n";
18 var_dump( natcasesort($unsorted_oct_array) );
24 *** Testing natcasesort() : usage variation ***
H A Dnatcasesort_variation5.phpt2 Test natcasesort() function : usage variations - different hex values
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass an array of different hex values to test how natcasesort() re-orders it
14 echo "*** Testing natcasesort() : usage variation ***\n";
17 var_dump( natcasesort($unsorted_hex_array) );
23 *** Testing natcasesort() : usage variation ***
H A Dnatcasesort_object1.phpt2 Test natcasesort() function : object functionality - array of objects
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass natcasesort() an array of objects to test how it re-orders them
14 echo "*** Testing natcasesort() : object functionality ***\n";
43 echo "\n-- Testing natcasesort() by supplying various object arrays --\n";
45 // testing natcasesort() function by supplying string object array
46 var_dump(natcasesort($unsorted_str_obj) );
52 *** Testing natcasesort() : object functionality ***
54 -- Testing natcasesort() by supplying various object arrays --
H A Dnatcasesort_basic.phpt2 Test natcasesort() function : basic functionality
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Test basic functionality of natcasesort()
14 echo "*** Testing natcasesort() : basic functionality ***\n";
21 var_dump(natcasesort($array));
27 *** Testing natcasesort() : basic functionality ***
H A Dnatcasesort_variation7.phpt2 Test natcasesort() function : usage variations - recursive arrays
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass natcasesort() an infinitely recursive array to test how it is re-ordered
14 echo "*** Testing natcasesort() : usage variations ***\n";
20 var_dump(@natcasesort($array));
26 *** Testing natcasesort() : usage variations ***
H A Dnatcasesort_object2.phpt2 Test natcasesort() function : object functionality - mixed visibility within objects
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass natcasesort() an array of objects which have properties of different
15 echo "*** Testing natcasesort() : object functionality ***\n";
46 echo "\n-- Testing natcasesort() by supplying object arrays --\n";
48 // testing natcasesort() function by supplying string object array
50 var_dump(natcasesort($temp_array) );
56 *** Testing natcasesort() : object functionality ***
58 -- Testing natcasesort() by supplying object arrays --
H A Dnatcasesort_variation9.phpt2 Test natcasesort() function : usage variations - mixed array
5 /* Prototype : bool natcasesort(array &$array_arg)
12 * and escape characters to test how natcasesort() re-orders it
15 echo "*** Testing natcasesort() : usage variation ***\n";
28 var_dump( @natcasesort($mixed_values) );
35 *** Testing natcasesort() : usage variation ***
H A Dnatcasesort_variation3.phpt2 Test natcasesort() function : usage variations - different numeric types
9 /* Prototype : bool natcasesort(array &$array_arg)
15 * Pass arrays of numeric data to test how natcasesort re-orders the array
18 echo "*** Testing natcasesort() : usage variation ***\n";
38 var_dump(natcasesort($array_arg));
45 *** Testing natcasesort() : usage variation ***
H A Dnatcasesort_variation4.phpt2 Test natcasesort() function : usage variations - different string types
10 /* Prototype : bool natcasesort(array &$array_arg)
16 * Pass arrays of string data to see how natcasesort() re-orders the array
19 echo "*** Testing natcasesort() : usage variation ***\n";
30 var_dump( natcasesort($array_arg) );
37 *** Testing natcasesort() : usage variation ***
H A Dbug36975.phpt2 Bug #36975 (natcasesort() causes array_pop() to misbehave)
6 $test = natcasesort($a);
8 echo "natcasesort success!\n";
28 natcasesort success!
H A Dnatcasesort_variation2.phpt2 Test natcasesort() function : usage variations - Pass arrays of different data types
6 /* Prototype : bool natcasesort(array &$array_arg)
12 * Pass arrays of different data types to natcasesort() to test how they are sorted
15 echo "*** Testing natcasesort() : usage variation ***\n";
107 // loop through each element of $inputs to check the behavior of natcasesort()
111 var_dump( natcasesort($input) );
121 *** Testing natcasesort() : usage variation ***
H A Dnatcasesort_variation11.phpt2 Test natcasesort() function : usage variations - Different array keys
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Pass arrays where the keys are different data types to test behaviour of natcasesort()
14 echo "*** Testing natcasesort() : usage variations ***\n";
103 // loop through each element of $inputs to check the behavior of natcasesort()
107 var_dump( natcasesort($input) );
115 *** Testing natcasesort() : usage variations ***
H A D004.phpt2 Test natsort and natcasesort
20 natcasesort($data);
/PHP-7.3/ext/spl/tests/
H A DarrayObject_natcasesort_basic1.phpt2 SPL: Test ArrayObject::natcasesort() function : basic functionality
5 /* Prototype : int ArrayObject::natcasesort()
6 * Description: proto int ArrayIterator::natcasesort()
12 echo "*** Testing ArrayObject::natcasesort() : basic functionality ***\n";
16 var_dump($ao1->natcasesort());
18 var_dump($ao2->natcasesort('blah'));
23 *** Testing ArrayObject::natcasesort() : basic functionality ***
/PHP-7.3/ext/standard/tests/strings/
H A Dbug47481.phpt2 Bug #47481 (natcasesort() does not sort extended ASCII characters correctly)
5 /* Prototype : bool natcasesort(array &$array_arg)
11 * Test natcasesort() with extended ASCII characters
19 var_dump(natcasesort($array));
/PHP-7.3/ext/spl/examples/
H A Dclass_tree.php97 natcasesort($interfaces);
/PHP-7.3/ext/spl/
H A Dspl.php669 function natcasesort() {/**/} function in ArrayObject
790 function natcasesort() {/**/} function in ArrayIterator
H A Dspl_array.c1550 SPL_ARRAY_METHOD(Array, natcasesort, SPL_ARRAY_METHOD_NO_ARG) /* }}} */ in SPL_ARRAY_METHOD()
1952 SPL_ME(Array, natcasesort, arginfo_array_void, ZEND_ACC_PUBLIC)
1979 SPL_ME(Array, natcasesort, arginfo_array_void, ZEND_ACC_PUBLIC)
/PHP-7.3/ext/standard/
H A Dphp_array.h31 PHP_FUNCTION(natcasesort);
H A Dbasic_functions.c3333 PHP_FE(natcasesort, arginfo_natcasesort)
H A Darray.c865 PHP_FUNCTION(natcasesort) in PHP_FUNCTION() argument

Completed in 65 milliseconds