美文网首页
PHP接收json字符串时被转义解决方法 --- 2023-07

PHP接收json字符串时被转义解决方法 --- 2023-07

作者: 一位先生_ | 来源:发表于2023-07-30 10:54 被阅读0次
    $info = request()->post("info");
    $info = htmlspecialchars_decode($info);
    $info = html_entity_decode($info);
    $info = json_decode($info ,true);
    

    相关文章

      网友评论

          本文标题:PHP接收json字符串时被转义解决方法 --- 2023-07

          本文链接:https://www.haomeiwen.com/subject/quhspdtx.html