Answers for "get the value of a json object in php"

PHP
0

php json request get value

<?php
$jsonurl = "https://reqres.in/api/users/2";
$json = file_get_contents($jsonurl);
$jsonDecode = json_decode($json, true);
echo $jsonDecode['data']['email'];
?>
Posted by: Guest on October-27-2020
0

access json object in php

$character = json_decode($data);
echo $character->name;
Posted by: Guest on November-10-2021

Code answers related to "get the value of a json object in php"

Browse Popular Code Answers by Language