标签: php
即使数组中键的值与硬编码字符串相同,比较结果也为false。
$json_array = json_decode($data,true); $client_id = $json_array['ClientId']; //the value is ApiIntegration echo $client_id== "ApiIntegration";