Home > Q&A > body text
Example
Have $a = 4,5,6
I want to get
$b = array(
4 => 1,
5 => 1,
6 => 1
);
Please give me some advice
灭绝师太2020-11-09 09:52:09
PHP array_fill_keys(),extract() function