i'm having a issue decoding a array from a API and was wondering if anyone could help me out.
{
"status": "200",
"response": {
"onlineId": "psn",
"plus": 0
}
I'm trying to echo the 'plus'
$hasplus = json_decode(file_get_contents("http://tusticles.com/psn/api?psn=".$id)) -> {'response->plus'};
Does anyone know why it's not working, also i'm still learning and fairly new to PHP. Thanks