1--TEST-- 2basic array_fill_keys test 3--INI-- 4precision=14 5--FILE-- 6<?php 7 var_dump(array_fill_keys(array(), 1)); 8 var_dump(array_fill_keys(array('foo', 'bar'), NULL)); 9 var_dump(array_fill_keys(array('5', 'foo', 10, 1.23), 123)); 10 var_dump(array_fill_keys(array('test', TRUE, 10, 100), '')); 11?> 12--EXPECT-- 13array(0) { 14} 15array(2) { 16 ["foo"]=> 17 NULL 18 ["bar"]=> 19 NULL 20} 21array(4) { 22 [5]=> 23 int(123) 24 ["foo"]=> 25 int(123) 26 [10]=> 27 int(123) 28 ["1.23"]=> 29 int(123) 30} 31array(4) { 32 ["test"]=> 33 string(0) "" 34 [1]=> 35 string(0) "" 36 [10]=> 37 string(0) "" 38 [100]=> 39 string(0) "" 40} 41