Voting

: three plus five?
(Example: nine)

The Note You're Voting On

matpatnik at hotmail dot com
17 years ago
This function will sort entity letters eg:é

I hope that help someone

function sort_entity($array) {
$total = count($array);
for ($i=0;$i<$total;$i++) {
if ($array[$i]{0} == '&') {
$array[$i] = $array[$i]{1}.$array[$i];
} else {
$array[$i] = $array[$i]{0}.$array[$i];
}
}
sort($array);

for ($i=0;$i<$total;$i++) {
$array[$i] = substr($array[$i],1);
}

return $array;
}

<< Back to user notes page

To Top