Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 JSONArray 如下所示
{ "output": [ "a", "b", "c", "d", "e" ] }
我需要在 php.ini 中查找上述数组中是否存在“e”。有人可以帮我解决这个问题吗?
$array = json_decode($json, true); if (in_array('e', $array['output'])) { ... }