$filename = "json.txt";
$handle = fopen($filename, "r");$contents = fread($handle, filesize($filename));echo $contents;//输出结果{"uname":"zhangs","uid":"2","sex":"男"}
请问大家 我怎么得到 具体uname的值 zhangs?正则本人不是太强。所以有没有其他简单的方法吗?
$handle = fopen($filename, "r");$contents = fread($handle, filesize($filename));echo $contents;//输出结果{"uname":"zhangs","uid":"2","sex":"男"}
请问大家 我怎么得到 具体uname的值 zhangs?正则本人不是太强。所以有没有其他简单的方法吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货