fork download
  1. <?php
  2.  
  3. $jsonString = '{"2016-06-16":{"available":6,"bind":0,"info":"","notes":"","price":878,"promo":0,"status":"available"},"2016-06-17":{"available":6,"bind":0,"info":"","notes":"","price":878,"promo":0,"status":"available"}}';
  4.  
  5. $jsonObject = json_decode($jsonString);
  6.  
  7. echo $jsonObject->{"2016-06-16"}->price;
  8.  
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
878