<?php
$jsonurl = "https://reqres.in/api/users/2";
$json = file_get_contents($jsonurl);
$jsonDecode = json_decode($json, true);
echo $jsonDecode['data']['email'];
?>
<?php
$jsonurl = "https://reqres.in/api/users?page=2";
$json = file_get_contents($jsonurl);
$jsonDecode = json_decode($json, true);
var_dump($jsonDecode['data']);
foreach($jsonDecode['data'] as $mydata){
echo $mydata['email'] . "<br>";
}
?>
Code Example |
---|
Php :: foreach stdclass object php |
Php :: eloquent whereraw |
Php :: how to create wordpress shortcodes |
Php :: dompdf laravel page break |
Php :: carbon diff |
Php :: merge two query results in laravel |
Php :: yii2 postgresql connection |
Php :: laravel make view command |
Php :: laravel include with variable |
Php :: php connect to mysql |
Php :: laravel subtract date |
Php :: php combine arrays |
Php :: install php-8 |
Php :: LARAVEL CREAT NEW TEST |
Php :: laravel withHeaders bearer |
Php :: laravel get data from this year |
Php :: php move file to another directory |
Php :: laravel run migration specific file |
Php :: PHP scandir() Function |
Php :: ubuntu laravel storage permission |
Php :: public_path laravel |
Php :: laravel joins |
Php :: PHP File Read Modes |
Php :: globals in php |
Php :: convert timestamp to date php |
Php :: array prepend php |
Php :: replace 0 in number to add 234 php |
Php :: laravel delete file after download |
Php :: php get max key in associative array |
Php :: laravel select count |