- implode: documentation ( source)
- shuffle: documentation ( source)
- preg_replace: documentation ( source)
- str_split: documentation ( source)
<?php
try {
$var = 'Hello';
function hassle($str)
{
preg_replace('/[^[:alnum:]]/', '', $str);
$chars = str_split($str);
shuffle($chars);
return implode('', $chars);
}
echo hassle($var);
} catch (Exception $e) {
}