Home
last modified time | relevance | path

Searched refs:array_values (Results 1 – 25 of 42) sorted by relevance

12

/PHP-7.4/ext/standard/tests/array/
H A Darray_values_variation.phpt2 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 Darray_values_variation_64bit.phpt2 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 Darray_values_basic.phpt2 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 Darray_values_variation7.phpt2 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 Darray_values_variation5.phpt2 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 Darray_values_variation6.phpt2 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 Darray_values_variation4.phpt2 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 Darray_values.phpt2 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 Darray_values_variation2.phpt2 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 Darray_values_variation3.phpt2 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 Dbug69166.phpt2 Fixed #69166 (Assigning array_values() to array does not reset key counter)
7 $ar = array_values($array);
H A Dbug75433.phpt2 array_values() preserves next index from source array when shallow-copying
8 $b = array_values($a);
H A Dbug75653.phpt2 Bug #75653: array_values don't work on empty array
8 $array = array_values($array);
H A Dpacked_001.phpt2 array_keys() and array_values() w/ packed optimization
20 print_r(array_values($input));
H A Darray_column_variant.phpt17 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.4/Zend/tests/
H A Dforeach_reference.phpt13 var_dump(array_values($array));
/PHP-7.4/ext/json/tests/
H A Dserialize.phpt32 return array_values(is_array($this->data) ? $this->data : get_object_vars($this->data));
54 $ndata = array_values($adata);
/PHP-7.4/ext/intl/tests/
H A Duconverter_getstandards_basic.phpt13 assertTrue($standards === array_values($standards), '$standards keys must be numeric');
H A Dtimezone_createTimeZoneIDEnumeration_variant2.phpt33 array_values(
/PHP-7.4/ext/gd/tests/
H A Dbug74435.phpt16 list($red, $green, $blue, $alpha) = array_values(imagecolorsforindex($im, $index));
/PHP-7.4/ext/standard/tests/strings/
H A Dsprintf_variation31.phpt13 $array_values = array(
38 foreach($array_values as $array_value) {
H A Dsprintf_variation43.phpt13 $array_values = array(
39 foreach($array_values as $array_value) {
H A Dsprintf_variation12.phpt13 $array_values = array (
39 foreach($array_values as $array_value) {
H A Dsprintf_variation24.phpt13 $array_values = array(
37 foreach($array_values as $array_value) {
/PHP-7.4/ext/spl/tests/
H A Dfixedarray_020.phpt7 var_dump(count($fa), $fa->toArray() === array_values($a));

Completed in 39 milliseconds

12