array_column($data,'value','name');
转换后
array(3) {
["date_range"] => string(21) "2023-11-11:2024-11-11"
["title"] => string(23) "标题1,标题2,标题3"
["x"] => string(2) "10"
}
PHP · 2024-04-17
array_column($data,'value','name');
转换后
array(3) {
["date_range"] => string(21) "2023-11-11:2024-11-11"
["title"] => string(23) "标题1,标题2,标题3"
["x"] => string(2) "10"
}