各位童鞋,这种数组字符串如何转为数组。。。
$arr=array (
'address' => '["河北省","秦皇岛市","海港区"]',
);
如何将 字符串转为一个数组
// array("河北省","秦皇岛市","海港区")
各位童鞋,这种数组字符串如何转为数组。。。
$arr=array (
'address' => '["河北省","秦皇岛市","海港区"]',
);
如何将 字符串转为一个数组
// array("河北省","秦皇岛市","海港区")
$arr=array ( 'address' => '["河北省","秦皇岛市","海港区"]', );
$addr = json_decode($arr['address']);
print_r($addr);