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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:09:31
Original
1071 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:
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
Latest Issues
How to create an array within an array?
From 1970-01-01 08:00:00
0
0
0
php array
From 1970-01-01 08:00:00
0
0
0
Array to array
From 1970-01-01 08:00:00
0
0
0
php array rotation
From 1970-01-01 08:00:00
0
0
0
array
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template