fork download
  1. <?php
  2.  
  3. $json = '{"message":"Oi Gente","report":[{"0":[{"port":"gsm-2.3","phonenumber":"00000000000","time":"1970-01-08 10:00:26","result":"fail"}]}]}';
  4.  
  5. $json_dec = json_decode($json, true);
  6.  
  7. echo $json_dec['report'][0][0][0]['time'];
Success #stdin #stdout 0.01s 83264KB
stdin
Standard input is empty
stdout
1970-01-08 10:00:26