iptcparse

(PHP 4, PHP 5, PHP 7)

iptcparseParse a binary IPTC block into single tags

Descrierea

iptcparse ( string $iptcblock ) : array

Parses an » IPTC block into its single tags.

Parametri

iptcblock

A binary IPTC block.

Valorile întoarse

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.

Exemple

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

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

Note

Notă:

Această funcție nu necesită biblioteca de prelucrare a imaginilor GD.