Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-7.4/ext/standard/tests/array/
H A Darsort_variation8.phpt2 Test arsort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defau…
12 …* testing arsort() by providing arrays contains sub arrays for $array argument with flowing flag v…
15 …* Note: arrays are sorted based on total count of elements inside it, when all the elements are ar…
20 // array of arrays
28 // array of arrays along with some values
31 // array contains sub arrays
38 echo "\n-- Testing arsort() by supplying various arrays containing sub arrays --\n";
40 // loop through to test arsort() with different arrays
44 // testing arsort() function by supplying different arrays, flag value is default
50 // testing arsort() function by supplying different arrays, flag value = SORT_REGULAR
[all …]
H A Dasort_variation8.phpt2 Test asort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defaul…
12 …* testing asort() by providing arrays contains sub arrays for $array argument with flowing flag va…
15 …* Note: arrays are sorted based on total count of elements inside it, when all the elements are ar…
20 // array of arrays
28 // array of arrays along with some values
31 // array contains sub arrays
38 echo "\n-- Testing asort() by supplying various arrays containing sub arrays --\n";
40 // loop through to test asort() with different arrays
44 // testing asort() function by supplying different arrays, flag value is default
50 // testing asort() function by supplying different arrays, flag value = SORT_REGULAR
[all …]
H A Dsort_variation8.phpt2 Test sort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defualt…
12 …* testing sort() by providing arrays contains sub arrays for $array argument with flowing flag val…
19 // array of arrays
27 // array of arrays along with some values
30 // array containing sub arrays
36 echo "\n-- Testing sort() by supplying various arrays containing sub arrays --\n";
38 // loop through to test sort() with different arrays
42 // testing sort() function by supplying different arrays, flag value is defualt
48 // testing sort() function by supplying different arrays, flag value = SORT_REGULAR
61 -- Testing sort() by supplying various arrays containing sub arrays --
H A Dkrsort_variation7.phpt2 Test krsort() function : usage variations - sort array with diff. sub arrays
11 * testing krsort() by providing arrays contains sub arrays for $array argument
19 // array with diff sub arrays to be sorted
27 // array of arrays along with some values
30 // array contains sub arrays
37 echo "\n-- Testing krsort() by supplying various arrays containing sub arrays --\n";
39 // loop through to test krsort() with different arrays
60 -- Testing krsort() by supplying various arrays containing sub arrays --
H A Dksort_variation7.phpt2 Test ksort() function : usage variations - sort array with diff. sub arrays
11 * testing ksort() by providing arrays containing sub arrays for $array argument
19 // array with diff sub arrays to be sorted
27 // array of arrays along with some values
30 // array contains sub arrays
37 echo "\n-- Testing ksort() by supplying various arrays containing sub arrays --\n";
39 // loop through to test ksort() with different arrays
60 -- Testing ksort() by supplying various arrays containing sub arrays --
H A Darray_chunk_variation4.phpt2 Test array_chunk() function : usage variations - array with diff. sub arrays
12 * Testing array_chunk() function - input array containing different sub arrays
26 echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_…
29 echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_…
32 echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_…
40 -- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' as …
67 -- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = t…
94 -- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = f…
H A Darray_map_variation3.phpt2 Test array_map() function : usage variations - different arrays for 'arr1' argument
6 * Description: Applies the callback to the elements of the given arrays
11 * Test array_map() by passing different arrays for $arr1 argument
14 echo "*** Testing array_map() : different arrays for 'arr1' argument ***\n";
21 // different arrays
22 $arrays = array (
25 array( array(2), array(1)), // sub arrays
31 // associative arrays
49 // loop through the various elements of $arrays to test array_map()
51 foreach($arrays as $arr1) {
[all …]
H A Darray_map_variation7.phpt2 Test array_map() function : usage variations - arrays of different size
6 * Description: Applies the callback to the elements of the given arrays
19 echo "*** Testing array_map() : arrays with diff. size ***\n";
26 // calling array_map with different arrays
31 …k', array(), array(1, 2, 3), array('a', 'b')) ); // passing more no. of arrays than callback func…
36 *** Testing array_map() : arrays with diff. size ***
H A Darray_merge_recursive_basic2.phpt2 Test array_merge_recursive() function : basic functionality - associative arrays
6 * Description: Recursively merges elements from passed arrays into one array
10 echo "*** Testing array_merge_recursive() : associative arrays ***\n";
12 // Initialise the arrays
29 *** Testing array_merge_recursive() : associative arrays ***
H A Darray_keys_variation_001.phpt6 echo "\n*** Testing array_keys() on various arrays ***";
7 $arrays = array(
23 /* loop through to test array_keys() with different arrays */
24 foreach ($arrays as $array) {
33 *** Testing array_keys() on various arrays ***
H A Darray_diff_variation9.phpt2 Test array_diff() function : usage variations - multidimensional arrays
14 * Test how array_diff() compares multidimensional arrays
24 echo "-- Compare two 2-D arrays --\n";
28 echo "\n-- Compare subarrays from two 2-D arrays --\n";
43 -- Compare two 2-D arrays --
49 -- Compare subarrays from two 2-D arrays --
H A Drsort_variation8.phpt2 Test rsort() function : usage variations - multi-dimensional arrays
11 * Pass rsort() multi-dimensional arrays to test behaviour
16 // array of arrays
24 // array of arrays along with some values
27 // array containing sub arrays
34 // loop through to test rsort() with different arrays
H A Darray_combine_variation4.phpt13 * associative arrays having different possible keys to $keys argument and
14 * associative arrays having different possible keys to $values argument.
38 // different variations of associative arrays to be passed to $arr1 argument
39 $arrays = array (
44 // arrays with integer keys
49 // arrays with float keys
55 // arrays with string keys
76 // loop through each sub-array within $arrays to check the behavior of array_combine()
77 // same arrays are passed to both $keys and $values
79 foreach($arrays as $array) {
H A Dcompact_variation1.phpt2 Test compact() function : usage variations - arrays containing references.
11 * compact variations - arrays with references
13 echo "*** Testing compact() : usage variations - arrays containg references ***\n";
29 *** Testing compact() : usage variations - arrays containg references ***
H A Darray_diff_assoc_variation9.phpt2 Test array_diff_assoc() function : usage variations - compare multidimensional arrays
14 * multi-dimensional arrays
24 echo "-- Compare two 2-D arrays --\n";
28 echo "\n-- Compare subarrays from two 2-D arrays --\n";
42 -- Compare two 2-D arrays --
84 -- Compare subarrays from two 2-D arrays --
H A Darray_intersect_assoc_variation6.phpt13 * associative arrays having different possible keys to $arr2 argument.
28 // different variations of associative arrays to be passed to $arr2 argument
29 $arrays = array (
34 // arrays with integer keys
39 // arrays with float keys
45 // arrays with string keys
68 foreach($arrays as $arr2) {
H A Darray_intersect_variation6.phpt12 * associative arrays having different possible keys to $arr2 argument.
27 // different variations of associative arrays to be passed to $arr2 argument
28 $arrays = array (
33 // arrays with integer keys
38 // arrays with float keys
44 // arrays with string keys
65 foreach($arrays as $arr2) {
H A Darray_map_variation5.phpt6 * Description: Applies the callback to the elements of the given arrays
41 $arrays = array (
46 // arrays with integer values
51 // arrays with float values
55 // arrays with string values
69 // loop through the various elements of $arrays to test array_map()
71 foreach($arrays as $arr1) {
H A Darray_combine_variation5.phpt13 * associative arrays having different possible values to $keys argument and
14 * associative arrays having different possible values to $values argument.
40 $arrays = array (
45 // arrays with integer values
50 // arrays with float values
54 // arrays with string values
69 // loop through each sub-array within $arrays to check the behavior of array_combine()
71 foreach($arrays as $array) {
/PHP-7.4/Zend/tests/arg_unpack/
H A Dinvalid_type.phpt2 Only arrays and Traversables can be unpacked
19 Warning: Only arrays and Traversables can be unpacked in %s on line %d
23 Warning: Only arrays and Traversables can be unpacked in %s on line %d
27 Warning: Only arrays and Traversables can be unpacked in %s on line %d
31 Warning: Only arrays and Traversables can be unpacked in %s on line %d
45 Warning: Only arrays and Traversables can be unpacked in %s on line %d
47 Warning: Only arrays and Traversables can be unpacked in %s on line %d
H A Dinternal.phpt6 $arrays = [
11 var_dump(array_map(null, ...$arrays));
/PHP-7.4/Zend/tests/
H A Dconstant_arrays.phpt2 Constant arrays
26 // ensure objects not allowed in arrays
96 Warning: Constants may only evaluate to scalar values, arrays or resources in %s on line %d
99 Warning: Constants cannot be recursive arrays in %s on line %d
H A Dlist_012.phpt2 Disallow empty elements in normal arrays
10 Fatal error: Cannot use empty array elements in arrays in %s on line %d
H A Dlist_013.phpt2 Disallow tail empty elements in normal arrays
10 Fatal error: Cannot use empty array elements in arrays in %s on line %d
/PHP-7.4/ext/standard/tests/general_functions/
H A Dvar_export_basic5.phpt2 Test var_export() function with valid arrays
14 echo "*** Testing var_export() with valid arrays ***\n";
15 // different valid arrays
34 /* Loop to check for above arrays with var_export() */
35 echo "\n*** Output for arrays ***\n";
48 *** Testing var_export() with valid arrays ***
50 *** Output for arrays ***

Completed in 51 milliseconds

12345678910>>...22