I have this json
Print_r($send);
{"status":"INSUFFICIENT_APIBALANCE"}
and I have this
$send = var_dump(json_decode($send));
Now am trying to do this
if ($send->status == "INSUFFICIENT_APIBALANCE"){
echo "Recharge Now";
}else echo "testing";
But am not getting the expected result, please help
Remove var_dump()
:
$send = json_decode($send);