1.这种数据转化成PHP
laravel框架中json数据转换php2.$url(获取的数据)
       $result = https_curl($url);
        $result = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $result);
        $result = xml2array($result,'<?xml version="1.0" encoding="utf-8"?>');
//        $arr = json_encode($r,true);
        $re = $result[0] ;
        $res = json_decode($re,true);
//      dump($res);

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-06-14
  • 2021-07-06
  • 2022-01-19
相关资源
相似解决方案