/PHP-8.1/ext/spl/tests/ |
H A D | class_implements_variation1.phpt | 45 $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 D | class_uses_variation1.phpt | 45 $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 D | bug31926.phpt | 6 $array = array(0 => array('world')); 8 $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
|
H A D | bug68128.phpt | 6 $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 D | bug70808.phpt | 6 $arr1 = array("key" => array(0, 1)); 7 $arr2 = array("key" => array(2));
|
H A D | array_multisort_variation11.phpt | 2 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 D | array_sum_variation5.phpt | 2 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 D | bug52719.phpt | 5 $array = array("hello", array("world")); 6 $userdata = array(); 8 $array,
|
H A D | array_diff_assoc_variation8.phpt | 2 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 D | array_diff_variation6.phpt | 2 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 D | rsort_variation4.phpt | 7 * 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 D | dereference_006.phpt | 2 Testing array dereference and references 12 $a = array(1); 21 array(1) { 25 array(2) {
|
H A D | foreach_002.phpt | 2 Creating recursive array on foreach using same variable 10 foreach (($a = array('a' => array('a' => &$a))) as $a) { 16 array(1) {
|
H A D | dereference_009.phpt | 2 Testing array dereference with references 8 $a = array(); 18 $h[] = array($h); 23 array(0) {
|
H A D | gc_007.phpt | 2 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 D | iterable_and_array.phpt | 2 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 D | bind_sqltint.phpt | 12 $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 D | formatter_get_set_symbol2.phpt | 18 $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 D | serialization_miscTypes_001.phpt | 18 /* 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 D | type_checking_weak.phpt | 16 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 D | stream_get_meta_data_file_variation1.phpt | 31 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 D | bug21732.phpt | 13 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 D | getopt_003.phpt | 10 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 D | clone_004.phpt | 25 $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 D | ReflectionClass_getConstants_basic.phpt | 18 $classes = array('C', 'D', 'E', 'F', 'X'); 27 array(1) { 32 array(1) { 37 array(1) { 42 array(1) { 47 array(0) {
|