有没有一种优雅的方法将此字符串转换为字典(列表不是固定的..可以随意添加“键”和“值”)
business_type,cafe|business_type_plural,cafes|sample_tag,couch|business_name,couch cafe
将它放入这个数组中?
array(
[business_type]=>'cafe'
[business_type_plural] => 'cafes'
[sample_tag]=>'couch'
[business_name]=>'couch cafe'
)