Home  >  Article  >  Backend Development  >  PHP怎么将这样的字符串变成数组

PHP怎么将这样的字符串变成数组

WBOY
WBOYOriginal
2016-06-13 12:37:06958browse

PHP如何将这样的字符串变成数组

本帖最后由 tangl198710 于 2011-08-12 12:11:55 编辑 字符串如下:

{'aid':'21','ctl_a_cpu':'df','ctl_a_ram':'df','ctl_a_disk':'df','ctl_a_fip':'df','ctl_a_os':'c_1_2','ctl_a_os_lang':'c_4_1,c_4_3','comment':'其它要求\',\'呵呵\',\'','total':'1090','typeid':'6'}

这样的字符串怎么转换成数组使用了?

如上的字符串转换成数组  :号前的为下标 后面的是值   要怎么处理呢,望高手指点
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn