php判断key是否存在的两种方法

array_key_exists($key, $array)
isset($array[$key])

两种方式都可以!

posted @ 2019-09-28 11:58  TBHacker  阅读(5335)  评论(0编辑  收藏  举报