我有一个数组,但我不知道如何将其更改为我需要的结构:我的数组:
array (
"1536" => "12",
"1695" => "Korea",
"1904" => "10/7",
"1905" => "",
"1906" => null,
"1907" => "1.1",
"1906.1" => "H1",
"1906.2" => "H35",
"1905.1" => "15"
)
我需要将此数组转换为这种形式(删除十分之一的数字,并将相同数字的值粘贴到数组中):
array (
"1536" => "12",
"1695" => "Korea",
"1904" => "10/7",
"1905" => array("", "15"),
"1906" => array(null, "H1", "H35"),
"1907" => "1.1"
)
素胚勾勒不出你