example.php
{"status": "ok"} {"status": "error"}
i will result like :
ok , error
my website showing a blank page(im using this code),can you help me to fix it?
<?php
$userinfo = 'example.php';
$fgc = file_get_contents($userinfo);
$json2 = json_decode($fgc, true);
$media = $json2['status'];
$mediaId = $media;
echo $mediaId;
?>