I have this code:
print ($myarray['response']['players'][0]['VACBanned'] ? 'BANNED' : 'NOT BANNED');
Where "VACBanned" is boolean. But it doesn´t matter if it's 'true' or 'false'; it always gives out "NOT BANNED".
var_dump result: Case 1: 'VACBanned' => bool(true) Case 2: 'VACBanned' => bool(false) Both cases show "NOT BANNED"
PIC: https://i.stack.imgur.com/Rk7uv.png https://i.stack.imgur.com/o0i9f.png