这句话翻译一下,怎么理解

WBOY
Release: 2016-06-13 12:09:31
Original
972 people have browsed it

这句话翻译一下,如何理解
in_array($_GET['act'],array_keys($output['search_type']))

感觉有点绕,如何理解?
------解决思路----------------------
array_keys($output['search_type'])获取$output['search_type']这个数组里面所有键然后组成一个新数组
in_array($_GET['act'],array_keys($output['search_type']))判断$_GET['act']这个值在不在新数组里面
 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template