WordPress开发者和主题制作者的搜索引擎



wp_iso_descrambler ›

Since1.2.0
已弃用n/a
wp_iso_descrambler ( $string )
参数:
  • (string) $string Subject line
    Required: Yes
返回:
  • (string) Converted string to ASCII
定义在:
文档:

Convert to ASCII from email subjects.



源码

function wp_iso_descrambler( $string ) {
	/* this may only work with iso-8859-1, I'm afraid */
	if ( ! preg_match( '#\=\?(.+)\?Q\?(.+)\?\=#i', $string, $matches ) ) {
		return $string;
	} else {
		$subject = str_replace( '_', ' ', $matches[2] );
		return preg_replace_callback( '#\=([0-9a-f]{2})#i', '_wp_iso_convert', $subject );
	}
}