从exif_read_data()的结果中提取comment属性

时间:2010-10-30 11:45:21

标签: php exif

如何从exif_read_data

返回评论属性

链接:
http://www.php.net/manual/en/function.exif-read-data.php

1 个答案:

答案 0 :(得分:1)

$comments = exif_read_data('tests/test2.jpg', 'COMMENT', true);

foreach ($comments as $name => $val) {
      echo "$name: $val<br />\n";
}