Is there any way to vary the value of a JSON? Let's take an example:
I have the following JSON
{
"ISteamClient": 0,
"ISteamFriends": 0,
"ISteamUser": 0,
"IEconItems_440": 0,
"IEconItems_730": 0,
"ISteamGameCoordinator_440": 0,
"ISteamGameCoordinator_570": 0
}
After using
$clientesteam = $json_str["ISteamCliente"];
echo "O Cliente Steam esta $clientesteam";
The serial result: The Steam client is 0
Is there a way to turn this "0" into "Online"?