Hello folks I've the api link there I want to get out the result using php. I've done it in javascript. I'm not sure how to do this in php?
code:
<?php
$from = ($_GET['f']);
$to = ($_GET['t']);
$phrese = urlencode($_GET['ph']);
$json=file_get_contents("https://glosbe.com/gapi/tm?
from=$from&dest=$to&format=json&phrase=$phrese&page=1&pretty=true");
$details=json_decode($json);
if($details->Response=='True')
?>
test <?php echo $details->res.phrase.text;?><br>