PHP判断一个JSON对象是否含有某一个属性的方法
property_exists
比如:var json={"code":400,"msg":"User Err"}
var rest=property_exists(json, 'access_token')
则rest的值为false
微信号:jamesworkshop 学习QQ群:364976091
property_exists
比如:var json={"code":400,"msg":"User Err"}
var rest=property_exists(json, 'access_token')
则rest的值为false