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