Wait no that doesn't work!
I can't find the solution on php.net either.
Stoopid me...
EDIT: Found a way! Complicated but a way none the less!
<?PHP
$string = "Hello";
function unichar($string) {
$two= strtolower(str_replace(' ', '', $string));
$res = count(count_chars($two, 1));
return $res;
}
$number = unichar($var);
$num = $number - 1;
echo $string[0];
echo $string[$num];
?>
EDIT2: Okay that only returns the first character, not the last. Okay I'm all out of ideas.