How to generate a set of data into an array key in php, and then copy the value to this key
xingzhi
xingzhi 2020-11-08 10:48:19
0
1
833

Example

Have $a = 4,5,6

I want to get

$b = array(

4 => 1,

        5 => 1,

        6 => 1

          );

Please give me some advice

xingzhi
xingzhi

reply all(1)
灭绝师太

PHP array_fill_keys(),extract() function

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template