- chr: documentation ( source)
- trim: documentation ( source)
- str_split: documentation ( source)
- ord: documentation ( source)
<?php
function encriptar_email($email) {
$partes = str_split(trim($email));
$nuevo = '';
foreach ($partes as $valor) {
$nuevo .= '&#'.ord($valor).';';
}
return $nuevo;
}
echo chr(encriptar_email('abc123 sasd ewrqewr werewr wererw'));