PHP判断数组下标有没有存在的方法

PHP判断数组下标有没有存在的方法
<pre>
if(!empty($token['errcode'])){
print_r($token['errmsg']);
exit();
}
</pre>

这样就不会报错了

原文地址:https://www.cnblogs.com/newmiracle/p/11856396.html