PHP json数据处理

  • Post author:
  • Post category:php


$string = '{"sno":"1123456"}';

$arr = json_decode($string,false);//第二个参数 为true时,返回数组,为false时返回对象object,默认为false

dump($arr);



版权声明:本文为chengxvrenyuan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。