PHP 函数array_column() 数组转key=>val

PHP · 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"
}
php
Theme Jasmine by Kent Liao