【发布时间】:2011-01-15 06:08:00
【问题描述】:
我有一个这样格式化的数组(这个例子有 5 个键):
[0]: HTTP/1.1 200 OK
[1]: Date: Wed, 10 Feb 2010 12:16:24 GMT
[2]: Server: Apache/2.2.3 (Red Hat)
[3]: X-Powered-By: PHP/5.1.6
[4]: etc..
数组键有时会交替出现,因为其中一个可能会被省略。如何搜索包含“Server: ...”的数组,如果存在则显示?
对于我的生活,我很困惑!
【问题讨论】:
标签: php search arrays indexing