Reputation: 241
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
Upvotes: 0
Views: 26