- implode: documentation ( source)
- sort: documentation ( source)
- str_split: documentation ( source)
<?php
function AlphabetSoup($str) {
$arr = str_split($str, 1);
$sorted = sort($arr);
$imp = implode($sorted);
return $imp;
}
echo AlphabetSoup('hfgdjsnidij');