<?php $keys=array("a","b","c","d"); $a1=array_fill_keys($keys,"blue"); print_r($a1); ?>