我有一个json字符串如下。
"{
"stepno": 1,
"content": "dddd",
"icon": "plug icon",
"header": "Uptime Guarantee",
"headcolor": "ffffff",
"tagline": "Check out our plug-in marketplace",
"taglinecolor": "ffffff",
"isActive": true
}"
我想从以下属性中删除双引号。
"{
stepno: 1,
content:'',
icon:'plug icon',
header:'Uptime Guarantee',
headcolor:'ffffff',
tagline:'Check out our plug-in marketplace',
taglinecolor:'ffffff',
isActive:true
}"
我该怎么做?请告诉我。
答案 0 :(得分:-1)
您可以使用mysql_real_escape_string()。它将删除引号。