Home
last modified time | relevance | path

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

12

/php-src/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
6 * Test basic functionality of array_values()
9 echo "*** Testing array_values() : basic functionality ***\n";
15 // Calling array_values() with all possible arguments
16 var_dump( array_values($input) );
21 *** Testing array_values() : basic functionality ***
H A Darray_values_variation7.phpt2 Test array_values() function : usage variations - Internal order check
6 * Check that array_values is re-assigning keys according to the internal order of the array,
10 echo "*** Testing array_values() : usage variations ***\n";
18 echo "\n-- Result of array_values() --\n";
19 var_dump(array_values($input));
24 *** Testing array_values() : usage variations ***
38 -- Result of array_values() --
H A Darray_values_variation5.phpt2 Test array_values() function : usage variations - internal array pointer
6 * Test the position of the internal array pointer after a call to array_values
9 echo "*** Testing array_values() : usage variations ***\n";
13 echo "\n-- Call array_values() --\n";
14 var_dump($result = array_values($input));
24 *** Testing array_values() : usage variations ***
26 -- Call array_values() --
H A Darray_values_variation6.phpt2 Test array_values() function : usage variations - Referenced variables
6 * Test array_values() when:
11 echo "*** Testing array_values() : usage variations ***\n";
19 var_dump($result1 = array_values($input));
21 echo "Change \$val2 and check result of array_values():\n";
28 *** Testing array_values() : usage variations ***
39 Change $val2 and check result of array_values():
H A Darray_values_variation4.phpt2 Test array_values() function : usage variations - multi-dimensional arrays
6 * Test array_values when:
12 echo "*** Testing array_values() : usage variations ***\n";
17 var_dump(array_values($input));
20 var_dump(array_values($input['sub']));
25 var_dump(array_values($input));
30 *** Testing array_values() : usage variations ***
H A Darray_values.phpt2 Test array_values() function
7 echo "*** Testing array_values() on basic array ***\n";
9 var_dump( array_values($basic_arr) );
11 echo "\n*** Testing array_values() on various arrays ***";
33 /* loop through to test array_values() with different arrays given above */
36 var_dump( array_values($array) );
43 *** Testing array_values() on basic array ***
64 *** Testing array_values() on various arrays ***
H A Darray_values_variation2.phpt2 Test array_values() function : usage variations - arrays of different data types
6 * Pass arrays of different data types as $input argument to array_values() to test behaviour
9 echo "*** Testing array_values() : usage variations ***\n";
102 // loop through each element of $inputs to check the behavior of array_values()
106 var_dump( array_values($input) );
115 *** Testing array_values() : usage variations ***
H A Darray_values_variation3.phpt2 Test array_values() function : usage variations - array keys different data types
7 * to array_values() to test behaviour
10 echo "*** Testing array_values() : usage variations ***\n";
79 // loop through each element of $inputs to check the behavior of array_values()
83 var_dump( array_values($input) );
89 *** 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";
65 -- pass null as second parameter and no third param to get back array_values(input) --
/php-src/ext/json/tests/
H A Dserialize.phpt30 return array_values(is_array($this->data) ? $this->data : get_object_vars($this->data));
52 $ndata = array_values($adata);
/php-src/Zend/tests/
H A Dforeach_reference.phpt13 var_dump(array_values($array));
/php-src/ext/gd/tests/
H A Dbug74435.phpt14 list($red, $green, $blue, $alpha) = array_values(imagecolorsforindex($im, $index));
/php-src/ext/intl/tests/
H A Duconverter_getstandards_basic.phpt13 assertTrue($standards === array_values($standards), '$standards keys must be numeric');
H A Dtimezone_createTimeZoneIDEnumeration_variant2.phpt31 array_values(
/php-src/ext/spl/tests/
H A Dfixedarray_020.phpt7 var_dump(count($fa), $fa->toArray() === array_values($a));
/php-src/ext/zlib/tests/
H A Dbug60761.phpt32 $lens = array_values($lens);
/php-src/ext/phar/
H A Dshortarc.php234 … $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
/php-src/ext/phar/tests/
H A Dphar_createdefaultstub.phpt263 $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
557 $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
859 $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
H A Dphar_setdefaultstub.phpt283 $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
578 $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
873 $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));

Completed in 22 milliseconds

12