Answers for "how to get an object from the URL inphp"

PHP
1

get json from url php

$url = "http://urlToYourJsonFile.com";
$json = file_get_contents($url);
$json_data = json_decode($json, true);
echo "My token: ". $json_data["access_token"];
Posted by: Guest on June-23-2020

Code answers related to "how to get an object from the URL inphp"

Browse Popular Code Answers by Language