I am using two files in php. one for calling the function. and another one is do process and return json object.
My question is,
How to get returned value from php.
File1 calling function--
$realtimestatsObj = new realtimestats();
$realtimestatsObj -> getDetails($imei, $con);
echo $realtimestatsObj;
File2 Return value--
$response = json_encode($realtimestats);
return $response;
Here file 2 return some value.. How to get return value and use that value in File1