How To Make A Json Request In Php

[Solved] How To Make A Json Request In Php | Php - Code Explorer | yomemimo.com
Question : how to receive json data in php

Answered by : perfect-pigeon

$data = json_decode(file_get_contents('php://input'), true);
print_r($data);
echo $data;

Source : https://stackoverflow.com/questions/18866571/receive-json-post-with-php | Last Update : Sun, 08 Nov 20

Question : how to make a json request in php

Answered by : derson--alves-da-silva

<?php
$jsonurl = "http://api.wipmania.com/json";
$json = file_get_contents($jsonurl);
var_dump(json_decode($json));
?>

Source : https://stackoverflow.com/questions/9930434/simple-json-request-in-php | Last Update : Sun, 03 May 20

Answers related to how to make a json request in php

Code Explorer Popular Question For Php