Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_iso_descrambler [ WordPress Function ]

wp_iso_descrambler ( $string )
Parameters:
  • (string) $string Subject line
Returns:
  • (string) Converted string to ASCII
Defined at:



Convert to ASCII from email subjects.

Source


<?php
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]);
        
$subject preg_replace_callback('#\=([0-9a-f]{2})#i''_wp_iso_convert'$subject);
        return 
$subject;
    }
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics