php in_array() 循环大量数组时效率特别慢问题

in_array() 会循环数组内部元素逐个匹配,特别耗时,换成以下方式,效率大大提升

posted @ 2018-07-25 20:57  小刁缘  阅读(2003)  评论(0编辑  收藏  举报