$m1 = array('one', 'two', 'three');
$m2 = array();
for ($j = 0; $j < count($m1); $j++) {
$ready = array("$m1[$j]"=>0);
$m2[] = $ready;
}
array(3) {
[0]=>
array(1) {
["one"]=>
int(0)
}
[1]=>
array(1) {
["two"]=>
int(0)
}
[2]=>
array(1) {
["three"]=>
int(0)
}
}
array(3) {
["one"]=>
int(0)
["two"]=>
int(0)
["three"]=>
int(0)
}