fork download
  1. <?php
  2.  
  3.  
  4. $file=array(
  5. 'uid' => '52',
  6. 'guarantee_id' => '1116',
  7. 'file_id' => '8',
  8. 'file_category' => 'test',
  9. 'meta' =>'{"name":"IMAG0161.jpg","type":"image\/jpeg","tmp_name":"\/tmp\/phpzdiaXV","error":0,"size":1749244}',
  10. 'FileStorage' => array()
  11. );
  12. $decoded = json_decode($file['meta']);
  13. echo $decoded->name;
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
IMAG0161.jpg