Home  >  Article  >  Backend Development  >  这句话翻译一下,怎么理解

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

WBOY
WBOYOriginal
2016-06-13 12:09:31960browse

这句话翻译一下,如何理解
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']这个值在不在新数组里面
 

Statement:
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