Searched refs:array_values (Results 1 – 25 of 44) sorted by relevance
12
/PHP-7.3/ext/standard/tests/array/ |
H A D | array_values_error.phpt | 2 Test array_values() function : error conditions - Pass incorrect number of functions 5 /* Prototype : array array_values(array $input) 11 * Pass incorrect number of arguments to array_values to test behaviour 14 echo "*** Testing array_values() : error conditions ***\n"; 17 echo "\n-- Testing array_values() function with Zero arguments --\n"; 18 var_dump( array_values() ); 20 //Test array_values with one more than the expected number of arguments 24 var_dump( array_values($input, $extra_arg) ); 29 *** Testing array_values() : error conditions *** 31 -- Testing array_values() function with Zero arguments -- [all …]
|
H A D | array_values_errors.phpt | 2 Test array_values() function (errors) 10 var_dump( array_values() ); // Zero arguments 11 var_dump( array_values(array(1,2,3), "") ); // No. of args > expected 13 var_dump( array_values("") ); // Empty string 14 var_dump( array_values(100) ); // Integer 15 var_dump( array_values(new stdclass) ); // object 22 Warning: array_values() expects exactly 1 parameter, 0 given in %s on line %d 25 Warning: array_values() expects exactly 1 parameter, 2 given in %s on line %d 28 Warning: array_values() expects parameter 1 to be array, string given in %s on line %d 31 Warning: array_values() expects parameter 1 to be array, int given in %s on line %d [all …]
|
H A D | array_values_variation1.phpt | 2 Test array_values() function : usage variations - Pass different data types as $input arg 5 /* Prototype : array array_values(array $input) 11 * Pass different data types as $input argument to array_values() to test behaviour 14 echo "*** Testing array_values() : usage variations ***\n"; 85 // loop through each element of $inputs to check the behavior of array_values() 89 var_dump( array_values($input) ); 98 *** Testing array_values() : usage variations *** 102 Warning: array_values() expects parameter 1 to be array, int given in %s on line %d 107 Warning: array_values() expects parameter 1 to be array, int given in %s on line %d 112 Warning: array_values() expects parameter 1 to be array, int given in %s on line %d [all …]
|
H A D | array_values_variation.phpt | 2 Test array_values() function (variation) 12 echo "\n*** Testing array_values() with resource type ***\n"; 18 var_dump( array_values($arr_resource) ); 20 echo "\n*** Testing array_values() with range checking ***\n"; 30 var_dump( array_values($arr_range) ); 32 echo "\n*** Testing array_values() on an array created on the fly ***\n"; 33 var_dump( array_values(array(1,2,3)) ); 34 var_dump( array_values(array()) ); // null array 39 *** Testing array_values() with resource type *** 47 *** Testing array_values() with range checking *** [all …]
|
H A D | array_values_variation_64bit.phpt | 2 Test array_values() function 12 echo "\n*** Testing array_values() with resource type ***\n"; 18 var_dump( array_values($arr_resource) ); 20 echo "\n*** Testing array_values() with range checking ***\n"; 30 var_dump( array_values($arr_range) ); 32 echo "\n*** Testing array_values() on an array created on the fly ***\n"; 33 var_dump( array_values(array(1,2,3)) ); 34 var_dump( array_values(array()) ); // null array 38 *** Testing array_values() with resource type *** 46 *** Testing array_values() with range checking *** [all …]
|
H A D | array_values_basic.phpt | 2 Test array_values() function : basic functionality 5 /* Prototype : array array_values(array $input) 11 * Test basic functionality of array_values() 14 echo "*** Testing array_values() : basic functionality ***\n"; 20 // Calling array_values() with all possible arguments 21 var_dump( array_values($input) ); 26 *** Testing array_values() : basic functionality ***
|
H A D | array_values_variation7.phpt | 2 Test array_values() function : usage variations - Internal order check 5 /* Prototype : array array_values(array $input) 11 * Check that array_values is re-assigning keys according to the internal order of the array, 15 echo "*** Testing array_values() : usage variations ***\n"; 23 echo "\n-- Result of array_values() --\n"; 24 var_dump(array_values($input)); 29 *** Testing array_values() : usage variations *** 43 -- Result of array_values() --
|
H A D | array_values_variation5.phpt | 2 Test array_values() function : usage variations - internal array pointer 5 /* Prototype : array array_values(array $input) 11 * Test the position of the internal array pointer after a call to array_values 14 echo "*** Testing array_values() : usage variations ***\n"; 18 echo "\n-- Call array_values() --\n"; 19 var_dump($result = array_values($input)); 29 *** Testing array_values() : usage variations *** 31 -- Call array_values() --
|
H A D | array_values_variation6.phpt | 2 Test array_values() function : usage variations - Referenced variables 5 /* Prototype : array array_values(array $input) 11 * Test array_values() when: 16 echo "*** Testing array_values() : usage variations ***\n"; 24 var_dump($result1 = array_values($input)); 26 echo "Change \$val2 and check result of array_values():\n"; 33 *** Testing array_values() : usage variations *** 44 Change $val2 and check result of array_values():
|
H A D | array_values.phpt | 2 Test array_values() function 7 /* Prototype: array array_values ( array $input ); 8 Discription: array_values() returns all the values from the input array 12 echo "*** Testing array_values() on basic array ***\n"; 14 var_dump( array_values($basic_arr) ); 16 echo "\n*** Testing array_values() on various arrays ***"; 38 /* loop through to test array_values() with different arrays given above */ 41 var_dump( array_values($array) ); 48 *** Testing array_values() on basic array *** 69 *** Testing array_values() on various arrays ***
|
H A D | array_values_variation4.phpt | 2 Test array_values() function : usage variations - multi-dimensional arrays 5 /* Prototype : array array_values(array $input) 11 * Test array_values when: 17 echo "*** Testing array_values() : usage variations ***\n"; 22 var_dump(array_values($input)); 25 var_dump(array_values($input['sub'])); 30 var_dump(array_values($input)); 35 *** Testing array_values() : usage variations ***
|
H A D | array_values_variation2.phpt | 2 Test array_values() function : usage variations - arrays of different data types 5 /* Prototype : array array_values(array $input) 11 * Pass arrays of different data types as $input argument to array_values() to test behaviour 14 echo "*** Testing array_values() : usage variations ***\n"; 107 // loop through each element of $inputs to check the behavior of array_values() 111 var_dump( array_values($input) ); 120 *** Testing array_values() : usage variations ***
|
H A D | array_values_variation3.phpt | 2 Test array_values() function : usage variations - array keys different data types 5 /* Prototype : array array_values(array $input) 12 * to array_values() to test behaviour 15 echo "*** Testing array_values() : usage variations ***\n"; 96 // loop through each element of $inputs to check the behavior of array_values() 100 var_dump( array_values($input) ); 106 *** Testing array_values() : usage variations ***
|
H A D | bug69166.phpt | 2 Fixed #69166 (Assigning array_values() to array does not reset key counter) 7 $ar = array_values($array);
|
H A D | bug75433.phpt | 2 array_values() preserves next index from source array when shallow-copying 8 $b = array_values($a);
|
H A D | bug75653.phpt | 2 Bug #75653: array_values don't work on empty array 8 $array = array_values($array);
|
H A D | packed_001.phpt | 2 array_keys() and array_values() w/ packed optimization 20 print_r(array_values($input));
|
H A D | array_column_variant.phpt | 17 echo "-- pass null as second parameter and no third param to get back array_values(input) --\n"; 64 -- pass null as second parameter and no third param to get back array_values(input) --
|
/PHP-7.3/ext/json/tests/ |
H A D | serialize.phpt | 32 return array_values(is_array($this->data) ? $this->data : get_object_vars($this->data)); 54 $ndata = array_values($adata);
|
/PHP-7.3/Zend/tests/ |
H A D | foreach_reference.phpt | 13 var_dump(array_values($array));
|
/PHP-7.3/ext/intl/tests/ |
H A D | uconverter_getstandards_basic.phpt | 13 assertTrue($standards === array_values($standards), '$standards keys must be numeric');
|
H A D | timezone_createTimeZoneIDEnumeration_variant2.phpt | 35 array_values(
|
/PHP-7.3/ext/gd/tests/ |
H A D | bug74435.phpt | 16 list($red, $green, $blue, $alpha) = array_values(imagecolorsforindex($im, $index));
|
/PHP-7.3/ext/standard/tests/strings/ |
H A D | sprintf_variation31.phpt | 13 $array_values = array( 38 foreach($array_values as $array_value) {
|
H A D | sprintf_variation43.phpt | 13 $array_values = array( 39 foreach($array_values as $array_value) {
|
Completed in 33 milliseconds
12