Home
last modified time | relevance | path

Searched refs:array (Results 1176 – 1200 of 6720) sorted by relevance

1...<<41424344454647484950>>...269

/PHP-8.1/ext/spl/tests/
H A Dclass_implements_variation1.phpt45 $index_array = array (1, 2, 3);
48 //array of values to iterate over
49 $inputs = array(
64 // array data
65 'empty array' => array(),
66 'int indexed array' => $index_array,
142 --empty array--
145 --int indexed array--
148 --associative array--
181 array(1) {
[all …]
H A Dclass_uses_variation1.phpt45 $index_array = array (1, 2, 3);
48 //array of values to iterate over
49 $inputs = array(
64 // array data
65 'empty array' => array(),
66 'int indexed array' => $index_array,
142 --empty array--
145 --int indexed array--
148 --associative array--
181 array(0) {
[all …]
H A Dbug31926.phpt6 $array = array(0 => array('world'));
8 $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
H A Dbug68128.phpt6 $array = new ArrayIterator(array('a', array('b', 'c')));
7 $regex = new RegexIterator($array, '/Array/');
13 $rArrayIterator = new RecursiveArrayIterator(array('test1', array('tet3', 'test4', 'test5')));
/PHP-8.1/ext/standard/tests/array/
H A Dbug70808.phpt6 $arr1 = array("key" => array(0, 1));
7 $arr2 = array("key" => array(2));
H A Darray_multisort_variation11.phpt2 Test array_multisort() function : usage variation - testing with empty array
5 echo "*** Testing array_multisort() : Testing with empty array ***\n";
7 var_dump(array_multisort(array()));
11 *** Testing array_multisort() : Testing with empty array ***
H A Darray_sum_variation5.phpt2 Test array_sum() function : usage variations - array with reference variables as elements
9 echo "*** Testing array_sum() : array with elements as reference ***\n";
16 // input array containing elements as reference variables
17 $input = array(
30 *** Testing array_sum() : array with elements as reference ***
H A Dbug52719.phpt5 $array = array("hello", array("world"));
6 $userdata = array();
8 $array,
H A Darray_diff_assoc_variation8.phpt2 Test array_diff_assoc() function : usage variations - array containing duplicate keys and values
7 * 1. the order of the array
14 $array_index = array('a', 'b', 'c', 0 => 'd', 'b'); //duplicate key (0), duplicate value (b)
15 $array_assoc = array ('2' => 'c', //same key=>value pair, different order
28 array(2) {
34 array(3) {
H A Darray_diff_variation6.phpt2 Test array_diff() function : usage variations - array containing duplicate keys and values
7 * 1. the order of the array
14 $array_index = array('a', 'b', 'c', 0 => 'd', 'b'); //duplicate key (0), duplicate value (b)
15 $array_assoc = array ('2' => 'c', //same key=>value pair, different order
28 array(1) {
32 array(3) {
H A Drsort_variation4.phpt7 * 1. passed an array of referenced variables
8 * 2. $array_arg is a reference to another array
18 // an array containing integer references
19 $unsorted_numerics = array( &$value1 , &$value2, &$value3);
38 array(3) {
49 array(3) {
/PHP-8.1/Zend/tests/
H A Ddereference_006.phpt2 Testing array dereference and references
12 $a = array(1);
21 array(1) {
25 array(2) {
H A Dforeach_002.phpt2 Creating recursive array on foreach using same variable
10 foreach (($a = array('a' => array('a' => &$a))) as $a) {
16 array(1) {
H A Ddereference_009.phpt2 Testing array dereference with references
8 $a = array();
18 $h[] = array($h);
23 array(0) {
H A Dgc_007.phpt2 GC 007: Unreferenced array cycle
7 $a = array(array());
16 array(1) {
/PHP-8.1/Zend/tests/type_declarations/union_types/redundant_types/
H A Diterable_and_array.phpt2 Using both iterable and array
6 function test(): iterable|array {
11 Fatal error: Type iterable|array contains both iterable and array, which is redundant in %s on line…
/PHP-8.1/ext/oci8/tests/
H A Dbind_sqltint.phpt12 $stmtarray = array(
219 array(1) {
228 array(1) {
237 array(1) {
246 array(1) {
255 array(1) {
264 array(1) {
273 array(1) {
282 array(1) {
291 array(1) {
[all …]
/PHP-8.1/ext/intl/tests/
H A Dformatter_get_set_symbol2.phpt18 $symbols = array(
22 …'PERCENT_SYMBOL' => array( NumberFormatter::PERCENT_SYMBOL, '_%_', 12345.123456, NumberFormatter::…
23 …'ZERO_DIGIT_SYMBOL' => array( NumberFormatter::ZERO_DIGIT_SYMBOL, '_ZD_', 12345.123456, NumberForm…
24 …'DIGIT_SYMBOL' => array( NumberFormatter::DIGIT_SYMBOL, '_DS_', 12345.123456, NumberFormatter::DEC…
25 …'MINUS_SIGN_SYMBOL' => array( NumberFormatter::MINUS_SIGN_SYMBOL, '_-_', -12345.123456, NumberForm…
26 …'PLUS_SIGN_SYMBOL' => array( NumberFormatter::PLUS_SIGN_SYMBOL, '_+_', 12345.123456, NumberFormatt…
27 …'CURRENCY_SYMBOL' => array( NumberFormatter::CURRENCY_SYMBOL, '_$_', 12345.123456, NumberFormatter…
31 …'PERMILL_SYMBOL' => array( NumberFormatter::PERMILL_SYMBOL, '_PS_', 12345.123456, NumberFormatter:…
33 …'INFINITY_SYMBOL' => array( NumberFormatter::INFINITY_SYMBOL, '_IS_', 12345.123456, NumberFormatte…
34 …'NAN_SYMBOL' => array( NumberFormatter::NAN_SYMBOL, '_N_', 12345.123456, NumberFormatter::DECIMAL …
[all …]
/PHP-8.1/ext/standard/tests/serialize/
H A Dserialization_miscTypes_001.phpt18 /* array declaration */
19 $arr_var = array(0, 1, -2, 3.333333, "a", array(), array(NULL));
21 $Variation_arr = array(
39 array(), // zero elements
40 array(1, 2, 3, 12345666, -2344),
42 array(), array(1,2,array()), "string", new stdclass
196 array(0) {
199 array(3) {
205 array(0) {
229 array(0) {
[all …]
/PHP-8.1/Zend/tests/type_declarations/union_types/
H A Dtype_checking_weak.phpt16 function test(string $type, array $values) {
57 test('float|array', $values);
58 test('string|array', $values);
59 test('bool|array', $values);
75 [] => Argument ... must be of type int|float, array given
123 [] => Argument ... must be of type int|bool, array given
159 Type float|array:
170 null => Argument ... must be of type array|float, null given
175 Type string|array:
191 Type bool|array:
[all …]
/PHP-8.1/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation1.phpt31 array(9) {
51 array(9) {
71 array(9) {
91 array(9) {
111 array(9) {
131 array(9) {
151 array(9) {
171 array(9) {
191 array(9) {
211 array(9) {
[all …]
/PHP-8.1/ext/pcre/tests/
H A Dbug21732.phpt13 var_dump(preg_replace('', array(), ''));
17 var_dump(preg_replace_callback("/(ab)(cd)(e)/", array(new foo(), "cb"), 'abcde'));
20 …g_replace(): Argument #1 ($pattern) must be of type array when argument #2 ($replacement) is an ar…
21 array(4) {
/PHP-8.1/ext/standard/tests/general_functions/
H A Dgetopt_003.phpt10 var_dump(getopt("2a:vcd1", array("another:", 12, 0, 1, "v")));
13 array(7) {
15 array(5) {
32 array(5) {
49 array(2) {
/PHP-8.1/tests/classes/
H A Dclone_004.phpt25 $o1->a = array(1,2);
26 $o1->b = array(3,4);
44 array(2) {
51 array(2) {
61 array(2) {
68 array(2) {
/PHP-8.1/ext/reflection/tests/
H A DReflectionClass_getConstants_basic.phpt18 $classes = array('C', 'D', 'E', 'F', 'X');
27 array(1) {
32 array(1) {
37 array(1) {
42 array(1) {
47 array(0) {

Completed in 38 milliseconds

1...<<41424344454647484950>>...269