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の上記の配列に「e」が存在するかどうかを確認する必要があります。誰かがこれで私を助けることができますか?
$array = json_decode($json, true); if (in_array('e', $array['output'])) { ... }