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