Another easy way would be to do something like the following -- which I believe is UTF-8 safe:
Tested and its not UTF-8 safe
Anyways, I've encountered an issue with this, and that got it abit more complicated.
I noticed that numbers, special chars and english letters are all printed just fine, its only my language which is printed in a reversed order.
So im wondering, how can i modify the below function to not reverse english letters, numbers and symbols, and ofcourse keep the order of the sentence as original.
su llac 01234567
call us 01234567
$length = mb_strlen($text, 'UTF-8');
$output = '';
$output .= mb_substr($text, $length, 1, 'UTF-8');