iptcparse

(PHP 4, PHP 5, PHP 7, PHP 8)

iptcparse将二进制 IPTC 块解析为单个标签

说明

iptcparse(string $iptc_block): array|false

» IPTC 块解析为单个标签。

参数

iptc_block

二进制的 IPTC 块。

返回值

返回一个数组,用 tagmarker 作为索引,以 value 为值。如果出错或未发现 IPTC 数据则返回 false

范例

示例 #1 iptcparse() 与 getimagesize() 一起使用

<?php
$size
= getimagesize('./test.jpg', $info);
if(isset(
$info['APP13']))
{
$iptc = iptcparse($info['APP13']);
var_dump($iptc);
}
?>

注释

注意:

此函数不需要 GD 图象库。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top