iptcparse

iptcparse

(PHP 4, PHP 5, PHP 7)

iptcparseParse a binary IPTC block into single tags.

Description

array iptcparse ( string $iptcblock )

Parses an » IPTC block into its single tags.

Parameters

iptcblock

A binary IPTC block.

Return Values

Returns an array using the tagmarker as an index and the value as the value. It returns FALSE on error or if no IPTC data was found.

Examples

Example #1 iptcparse() used together with getimagesize()

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

Notes

Note:

This function does not require the GD image library.

© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/function.iptcparse.php

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部