Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_wp_iso_convert() WordPress Function
The wp_iso_convert() function is used to convert a string to a valid ISO-8859-1 string. This function is useful for strings that contain non-ASCII characters.
_wp_iso_convert( array $match ) #
Helper function to convert hex encoded chars to ASCII.
Contents
Parameters
- $match
(array)(Required)The preg_replace_callback matches array.
Return
(string) Converted chars.
Source
File: wp-includes/formatting.php
function _wp_iso_convert( $match ) { return chr( hexdec( strtolower( $match[1] ) ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |