Home
last modified time | relevance | path

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

12345678910>>...17

/php-src/ext/standard/tests/array/sort/
H A Dasort_variation8.phpt2 Test asort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defaul…
6 …* testing asort() by providing arrays contains sub arrays for $array argument with flowing flag va…
9 …* Note: arrays are sorted based on total count of elements inside it, when all the elements are ar…
14 // array of arrays
22 // array of arrays along with some values
25 // array contains sub arrays
32 echo "\n-- Testing asort() by supplying various arrays containing sub arrays --\n";
34 // loop through to test asort() with different arrays
38 // testing asort() function by supplying different arrays, flag value is default
44 // testing asort() function by supplying different arrays, flag value = SORT_REGULAR
[all …]
H A Darsort_variation8.phpt2 Test arsort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defau…
6 …* testing arsort() by providing arrays contains sub arrays for $array argument with flowing flag v…
9 …* Note: arrays are sorted based on total count of elements inside it, when all the elements are ar…
14 // array of arrays
22 // array of arrays along with some values
25 // array contains sub arrays
32 echo "\n-- Testing arsort() by supplying various arrays containing sub arrays --\n";
34 // loop through to test arsort() with different arrays
38 // testing arsort() function by supplying different arrays, flag value is default
44 // testing arsort() 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 default…
6 …* testing sort() by providing arrays contains sub arrays for $array argument with flowing flag val…
13 // array of arrays
21 // array of arrays along with some values
24 // array containing sub arrays
30 echo "\n-- Testing sort() by supplying various arrays containing sub arrays --\n";
32 // loop through to test sort() with different arrays
36 // testing sort() function by supplying different arrays, flag value is default
42 // testing sort() function by supplying different arrays, flag value = SORT_REGULAR
55 -- Testing sort() by supplying various arrays containing sub arrays --
H A Dksort_variation7.phpt2 Test ksort() function : usage variations - sort array with diff. sub arrays
6 * testing ksort() by providing arrays containing sub arrays for $array argument
14 // array with diff sub arrays to be sorted
22 // array of arrays along with some values
25 // array contains sub arrays
32 echo "\n-- Testing ksort() by supplying various arrays containing sub arrays --\n";
34 // loop through to test ksort() with different arrays
55 -- Testing ksort() by supplying various arrays containing sub arrays --
H A Dkrsort_variation7.phpt2 Test krsort() function : usage variations - sort array with diff. sub arrays
6 * testing krsort() by providing arrays contains sub arrays for $array argument
14 // array with diff sub arrays to be sorted
22 // array of arrays along with some values
25 // array contains sub arrays
32 echo "\n-- Testing krsort() by supplying various arrays containing sub arrays --\n";
34 // loop through to test krsort() with different arrays
55 -- Testing krsort() by supplying various arrays containing sub arrays --
H A Drsort_variation8.phpt2 Test rsort() function : usage variations - multi-dimensional arrays
6 * Pass rsort() multi-dimensional arrays to test behaviour
11 // array of arrays
19 // array of arrays along with some values
22 // array containing sub arrays
29 // loop through to test rsort() with different arrays
/php-src/ext/standard/tests/array/
H A Darray_chunk_variation4.phpt2 Test array_chunk() function : usage variations - array with diff. sub arrays
6 * Testing array_chunk() function - input array containing different sub arrays
20 echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_…
23 echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_…
26 echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_…
34 -- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' as …
61 -- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = t…
88 -- 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 * Test array_map() by passing different arrays for $arr1 argument
9 echo "*** Testing array_map() : different arrays for 'arr1' argument ***\n";
16 // different arrays
17 $arrays = array (
20 array( array(2), array(1)), // sub arrays
26 // associative arrays
44 // loop through the various elements of $arrays to test array_map()
46 foreach($arrays as $arr1) {
55 *** Testing array_map() : different arrays for 'arr1' argument ***
H A Darray_combine_variation4.phpt7 * associative arrays having different possible keys to $keys argument and
8 * associative arrays having different possible keys to $values argument.
32 // different variations of associative arrays to be passed to $arr1 argument
33 $arrays = array (
38 // arrays with integer keys
43 // arrays with string keys
64 // loop through each sub-array within $arrays to check the behavior of array_combine()
65 // same arrays are passed to both $keys and $values
67 foreach($arrays as $array) {
H A Dcompact_variation1.phpt2 Test compact() function : usage variations - arrays containing references.
6 * compact variations - arrays with references
8 echo "*** Testing compact() : usage variations - arrays containing references ***\n";
35 *** Testing compact() : usage variations - arrays containing references ***
H A Darray_diff_assoc_variation9.phpt2 Test array_diff_assoc() function : usage variations - compare multidimensional arrays
7 * multi-dimensional arrays
17 echo "-- Compare two 2-D arrays --\n";
21 echo "\n-- Compare subarrays from two 2-D arrays --\n";
35 -- Compare two 2-D arrays --
77 -- Compare subarrays from two 2-D 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_map_variation7.phpt2 Test array_map() function : usage variations - arrays of different size
14 echo "*** Testing array_map() : arrays with diff. size ***\n";
21 // calling array_map with different arrays
26 …k', array(), array(1, 2, 3), array('a', 'b')) ); // passing more no. of arrays than callback func…
31 *** Testing array_map() : arrays with diff. size ***
H A Darray_intersect_assoc_variation6.phpt7 * associative arrays having different possible keys to $arr2 argument.
22 // different variations of associative arrays to be passed to $arr2 argument
23 $arrays = array (
28 // arrays with integer keys
33 // arrays with string keys
54 // loop through each sub-array within $arrays to check the behavior of array_intersect_assoc()
56 foreach($arrays as $arr2) {
H A Darray_intersect_variation6.phpt7 * associative arrays having different possible keys to $arr2 argument.
22 // different variations of associative arrays to be passed to $arr2 argument
23 $arrays = array (
28 // arrays with integer keys
33 // arrays with string keys
52 // loop through each sub-array within $arrays to check the behavior of array_intersect()
54 foreach($arrays as $arr2) {
H A Darray_intersect_assoc_variation5.phpt7 * associative arrays having different possible keys to $arr1 argument.
22 // different variations of associative arrays to be passed to $arr1 argument
23 $arrays = array (
28 // arrays with integer keys
33 // arrays with string keys
54 // loop through each sub-array within $arrays to check the behavior of array_intersect_assoc()
56 foreach($arrays as $arr1) {
H A Darray_intersect_variation5.phpt7 * associative arrays having different possible keys to $arr1 argument.
22 // different variations of associative arrays to be passed to $arr1 argument
23 $arrays = array (
28 // arrays with integer keys
33 // arrays with string keys
52 // loop through each sub-array within $arrays to check the behavior of array_intersect()
54 foreach($arrays as $arr1) {
H A Darray_merge_recursive_basic2.phpt2 Test array_merge_recursive() function : basic functionality - associative arrays
5 echo "*** Testing array_merge_recursive() : associative arrays ***\n";
7 // Initialise the arrays
24 *** Testing array_merge_recursive() : associative arrays ***
H A Darray_combine_variation5.phpt7 * associative arrays having different possible values to $keys argument and
8 * associative arrays having different possible values to $values argument.
34 $arrays = array (
39 // arrays with integer values
44 // arrays with float values
48 // arrays with string values
63 // loop through each sub-array within $arrays to check the behavior of array_combine()
65 foreach($arrays as $array) {
H A Darray_combine_variation3.phpt2 Test array_combine() function : usage variations - different arrays(Bug#43424)
6 * Passing different types of arrays to both $keys and $values arguments and testing whether
10 echo "*** Testing array_combine() : Passing different types of arrays to both \$keys and \$values a…
11 /* Different heredoc strings passed as argument to arrays */
41 // arrays passed to $keys argument
42 $arrays = array (
52 // associative arrays
70 // loop through each sub-array within $arrays to check the behavior of array_combine()
71 // same arrays are passed to both $keys and $values
73 foreach($arrays as $array) {
[all …]
/php-src/Zend/tests/arg_unpack/
H A Dinvalid_type.phpt2 Only arrays and Traversables can be unpacked
39 TypeError: Only arrays and Traversables can be unpacked, null given
40 TypeError: Only arrays and Traversables can be unpacked, int given
41 TypeError: Only arrays and Traversables can be unpacked, stdClass given
42 TypeError: Only arrays and Traversables can be unpacked, string given
43 TypeError: Only arrays and Traversables can be unpacked, stdClass given
/php-src/tests/lang/
H A DpassByReference_006.phpt2 Pass uninitialized objects and arrays by reference to test implicit initialisation.
36 echo "\n ---- Pass uninitialized arrays & objects by ref: static method call ---\n";
41 echo "\n\n---- Pass uninitialized arrays & objects by ref: constructor ---\n";
46 echo "\n ---- Pass uninitialized arrays & objects by ref: instance method call ---\n";
66 ---- Pass uninitialized arrays & objects by ref: static method call ---
80 ---- Pass uninitialized arrays & objects by ref: constructor ---
93 ---- Pass uninitialized arrays & objects by ref: instance method call ---
/php-src/ext/com_dotnet/tests/
H A Dvariant_variation.phpt2 Testing variant arrays
7 $arrays = [
12 foreach ($arrays as $desc => $array) {
/php-src/ext/standard/tests/general_functions/
H A Dvar_export_basic5.phpt2 Test var_export() function with valid arrays
7 echo "*** Testing var_export() with valid arrays ***\n";
8 // different valid arrays
27 /* Loop to check for above arrays with var_export() */
28 echo "\n*** Output for arrays ***\n";
40 *** Testing var_export() with valid arrays ***
42 *** Output for arrays ***
H A Dis_array.phpt5 echo "*** Testing is_array() on different type of arrays ***\n";
6 /* different types of arrays */
7 $arrays = array(
25 type of arrays, expected output bool(true) */
27 foreach ($arrays as $var_array ) {
85 /* unset/undefined arrays */
103 *** Testing is_array() on different type of arrays ***

Completed in 35 milliseconds

12345678910>>...17