Home
last modified time | relevance | path

Searched refs:array_fill_keys (Results 1 – 11 of 11) sorted by relevance

/PHP-5.4/ext/standard/tests/array/
H A Darray_fill_keys_variation4.phpt2 Test array_fill_keys() function : variation of parameter
30 var_dump( array_fill_keys($array, $float) );
33 var_dump( array_fill_keys($array, $nullVal) );
36 var_dump( array_fill_keys($array, $obj) );
39 var_dump( array_fill_keys($array, $bool) );
42 var_dump( array_fill_keys($array, $fp) );
45 var_dump( array_fill_keys($array, $unset_var) );
53 -- Testing array_fill_keys() function with float --
59 -- Testing array_fill_keys() function with null --
65 -- Testing array_fill_keys() function with object --
[all …]
H A Darray_fill_keys_error.phpt2 Test array_fill_keys() function : error conditions
5 /* Prototype : proto array array_fill_keys(array keys, mixed val)
11 echo "*** Testing array_fill_keys() : error conditions ***\n";
18 var_dump( array_fill_keys($keys, $val, $extra_arg) );
21 var_dump( array_fill_keys($keys) );
23 echo "\n-- Testing array_fill_keys() function with no arguments --\n";
24 var_dump( array_fill_keys() );
29 *** Testing array_fill_keys() : error conditions ***
31 -- Testing array_fill_keys() function with more than expected no. of arguments --
36 -- Testing array_fill_keys() function with less than expected no. of arguments --
[all …]
H A Darray_fill_keys_variation3.phpt2 Test array_fill_keys() function : variation of parameter
5 /* Prototype : proto array array_fill_keys(array keys, mixed val)
13 echo "*** Testing array_fill_keys() : parameter variations ***\n";
23 var_dump( array_fill_keys($bool, $float) );
26 var_dump( array_fill_keys($array, $fp) );
28 echo "\n-- Testing array_fill_keys() function with mixed array --\n";
29 var_dump( array_fill_keys($nullVal, $simpleStr) );
35 *** Testing array_fill_keys() : parameter variations ***
37 -- Testing array_fill_keys() function with both wrong arguments --
42 -- Testing array_fill_keys() function with unusual second arguments --
[all …]
H A Darray_fill_keys_variation1.phpt2 Test array_fill_keys() function : variation of parameter
5 /* Prototype : proto array array_fill_keys(array keys, mixed val)
12 echo "*** Testing array_fill_keys() : parameter variations ***\n";
28 var_dump( array_fill_keys($emptyArr, $nullVal) );
30 echo "\n-- Testing array_fill_keys() function with keyed array --\n";
32 var_dump( array_fill_keys($keyedArray, $simpleStr) );
36 var_dump( array_fill_keys($mixedArray, $simpleStr) );
42 *** Testing array_fill_keys() : parameter variations ***
44 -- Testing array_fill_keys() function with empty arguments --
48 -- Testing array_fill_keys() function with keyed array --
[all …]
H A Darray_fill_keys_variation2.phpt2 Test array_fill_keys() function : variation of parameter
5 /* Prototype : proto array array_fill_keys(array keys, mixed val)
13 echo "*** Testing array_fill_keys() : parameter variations ***\n";
31 var_dump(array_fill_keys($keyedArray, $refString));
33 echo "\n-- Testing array_fill_keys() function with reference keys --\n";
35 $res = array_fill_keys($refKeys, $simpleStr);
44 var_dump(array_fill_keys($refArray, $simpleStr));
50 *** Testing array_fill_keys() : parameter variations ***
52 -- Testing array_fill_keys() function with reference value --
60 -- Testing array_fill_keys() function with reference keys --
[all …]
H A Darray_fill_keys.phpt2 basic array_fill_keys test
7 var_dump(array_fill_keys('test', 1));
8 var_dump(array_fill_keys(array(), 1));
9 var_dump(array_fill_keys(array('foo', 'bar'), NULL));
10 var_dump(array_fill_keys(array('5', 'foo', 10, 1.23), 123));
11 var_dump(array_fill_keys(array('test', TRUE, 10, 100), ''));
15 Warning: array_fill_keys() expects parameter 1 to be array, string given in %s on line %d
/PHP-5.4/Zend/tests/
H A Dbug45877.phpt13 var_dump(array_fill_keys($keys, 1));
/PHP-5.4/ext/standard/
H A Dphp_array.h57 PHP_FUNCTION(array_fill_keys);
H A Darray.c1581 PHP_FUNCTION(array_fill_keys) in PHP_FUNCTION() argument
H A Dbasic_functions.c3297 PHP_FE(array_fill_keys, arginfo_array_fill_keys)
/PHP-5.4/
H A DNEWS6950 - Added array_fill_keys() function. (Marcus, Matt Wilmas)

Completed in 72 milliseconds