Home
last modified time | relevance | path

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

12

/PHP-5.5/ext/standard/tests/array/
H A Darray_values_error.phpt2 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) );
30 *** Testing array_values() : error conditions ***
32 -- Testing array_values() function with Zero arguments --
[all …]
H A Darray_values_errors.phpt2 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, integer given in %s on line %d
[all …]
H A Darray_values_variation1.phpt2 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) );
99 *** Testing array_values() : usage variations ***
148 Warning: array_values() expects parameter 1 to be array, null given in %s on line %d
153 Warning: array_values() expects parameter 1 to be array, null given in %s on line %d
212 Warning: array_values() expects parameter 1 to be array, null given in %s on line %d
[all …]
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) );
27 *** 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));
30 *** Testing array_values() : usage variations ***
44 -- 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));
30 *** Testing array_values() : usage variations ***
32 -- 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";
34 *** Testing array_values() : usage variations ***
45 Change $val2 and check result of array_values():
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_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));
36 *** Testing array_values() : usage variations ***
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) );
121 *** 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) );
107 *** Testing array_values() : usage variations ***
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-5.5/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-5.5/ext/intl/tests/
H A Dtimezone_createTimeZoneIDEnumeration_variant2.phpt35 array_values(
/PHP-5.5/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_variation37.phpt13 $array_values = array(
37 foreach($array_values as $array_value) {
H A Dsprintf_variation24.phpt13 $array_values = array(
37 foreach($array_values as $array_value) {
H A Dsprintf_variation18.phpt15 $array_values = array(
39 foreach($array_values as $array_value) {
H A Dsprintf_variation49.phpt13 $array_values = array(
40 foreach($array_values as $array_value) {
/PHP-5.5/ext/spl/tests/
H A Dfixedarray_020.phpt7 var_dump(count($fa), $fa->toArray() === array_values($a));
/PHP-5.5/ext/zlib/tests/
H A Dbug60761.phpt33 $lens = array_values($lens);

Completed in 34 milliseconds

12