iconv_get_encoding
Function • Params and return types changed in PHP 8.0
Retrieve internal configuration variables of iconv extension.
iconv_get_encoding Function synopsis
iconv_get_encoding(string $type = "all"): array|string|false
Parameters
$type
OptionalTypestringDefault value"all"
The value of the optional $type can be:
Return value
Typearray|string|false
Returns the current value of the internal configuration variable if
successful or false on failure.
If $type is omitted or set to "all",
iconv_get_encoding returns an array that
stores all these variables.
Changes to the iconv_get_encoding Function
PHP 8.0
- Return type added:
array|string|false - Parameter type added for parameter #1 (
$type):string - Parameter default value added for position #1 (
$type):"all"
- iconv_get_encoding($type)
+ iconv_get_encoding(string $type = "all"): array|string|false iconv_get_encoding Function Availability
iconv_get_encoding 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 |