array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.iptcparse.php', 1 => 'iptcparse', ), 'up' => array ( 0 => 'ref.image.php', 1 => 'GD 和图像处理 函数', ), 'prev' => array ( 0 => 'function.iptcembed.php', 1 => 'iptcembed', ), 'next' => array ( 0 => 'function.jpeg2wbmp.php', 1 => 'jpeg2wbmp', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/image/functions/iptcparse.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
iptcparse — 将二进制 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 图象库。