For instance, creating the following array?
$myArray=array(
'a'=>null,
'b'=>null,
'c'=>null,
'd'=>null,
'e'=>null,
'f'=>null,
'g'=>null,
'h'=>null
);
$myArray = array_fill_keys(range('a','h'), null);
This is what you're looking for
$myArray = array_fill_keys(array('a','b','c','d','e','f','g','h'), null);