PHP判断一个JSON对象是否含有某一个属性的方法

property_exists
好比:var json={"code":400,"msg":"User Err"}
var rest=property_exists(json, 'access_token')

则rest的值为falsejson

相关文章
相关标签/搜索