Last active
December 20, 2018 23:17
-
-
Save parzibyte/2d9dad3eccd66ed762b6960d3c583465 to your computer and use it in GitHub Desktop.
Limpiar asunto de correo created by parzibyte - https://repl.it/@parzibyte/Limpiar-asunto-de-correo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function limpiarAsunto($asunto) | |
{ | |
$cadena = "Subject"; | |
$longitud = strlen($cadena) + 2; | |
return substr( | |
iconv_mime_encode( | |
$cadena, | |
$asunto, | |
[ | |
"input-charset" => "UTF-8", | |
"output-charset" => "UTF-8", | |
] | |
), | |
$longitud | |
); | |
} | |
echo limpiarAsunto("Activación de tu cuenta para bla bla"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment