$data['is_card_images'] = $this->request->post('is_card_images');
$isCardImages = json_decode(stripcslashes(html_entity_decode($data['is_card_images'])),true);
tp5解析 uni传过来的数组图片对象
于 2023-03-01 10:09:08 首次发布
该代码段从POST请求中获取is_card_images参数,然后使用stripcslashes和html_entity_decode进行解码,再用json_decode转换为PHP数组。$isCardImages变量存储了解码后的结果。
摘要由CSDN通过智能技术生成