exif_tagname

(PHP 4 >= 4.2.0, PHP 5, PHP 7)
Get the header name for an index
string exif_tagname ( int $index )
Parameters:
index

The Tag ID for which a Tag Name will be looked up.

Returns:

Returns the header name, or FALSE if index is not a defined EXIF tag id.

Examples:
exif_tagname() example
1
2
3
4
<?php
echo "256: ".exif_tagname(256).PHP_EOL;
echo "257: ".exif_tagname(257).PHP_EOL;
?>

The above example will output:

256: ImageWidth
257: ImageLength
See also:

exif_imagetype() -

» EXIF Specification -

» EXIF Tags -

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.