iptcembed
Function • Params and return types changed in PHP 8.0
Embeds binary IPTC data into a JPEG image.
iptcembed Function synopsis
iptcembed(
string $iptc_data,
string $filename,
int $spool = 0
): string|bool
Parameters
$iptc_data
Typestring
The data to be written.
$filename
Typestring
Path to the JPEG image.
$spool
OptionalTypeintDefault value0
Spool flag. If the spool flag is less than 2 then the JPEG will be returned as a string. Otherwise the JPEG will be printed to STDOUT.
Return value
Typestring|bool
If $spool is less than 2, the JPEG will be returned,
or false on failure. Otherwise returns true on success
or false on failure.
Changes to the iptcembed Function
PHP 8.0
- Return type added:
string|bool - Parameter name of parameter #1 changed:
$iptcdatato$iptc_data - Parameter type added for parameter #1 (
$iptc_data):string - Parameter name of parameter #2 changed:
$jpeg_file_nameto$filename - Parameter type added for parameter #2 (
$filename):string - Parameter type added for parameter #3 (
$spool):int - Parameter default value added for position #3 (
$spool):0
iptcembed(
- $iptcdata,
+ string $iptc_data,
- $jpeg_file_name,
+ string $filename,
- $spool
+ int $spool = 0
- )
+ ): string|bool iptcembed Function Availability
iptcembed Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |