Answers for "php best way to get json from url"

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 "php best way to get json from url"

Browse Popular Code Answers by Language