php中判断某个数组中是否有某key

array_key_exists()函数

原文地址:https://www.cnblogs.com/stan-an/p/12539169.html