Below is my working code but when I am trying to echo "Telecom circle", getting error "Parse error: syntax error, unexpected 'circle' (T_STRING)".
if ($_GET['result']):
$rslt = $_GET['result'];
$result = Unirest\Request::get("https://sphirelabs-mobile-number-portability-india-operator-v1.p.mashape.com/index.php?number=$rslt",
array(
"X-Mashape-Key" => "XXXXXXXXXXXXX",
"Accept" => "application/json"
)
);
echo ($result->body->Operator);
echo($result->body->Telecom circle);
endif;
API RESPONSE :
{
"Telecom circle": "Delhi NCR",
"Operator": "Vodafone",
"Is MNP": "False"
}