how to revese a multbyte string

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jasongr
Forum Contributor
Posts: 206
Joined: Tue Jul 27, 2004 6:19 am

how to revese a multbyte string

Post by jasongr »

Hello

function strrev isn't safe when used with a multibyte string
Is there a way to reverse a multibyte string?
maybe there is a way to convert it to ASCII, then use strrev, but how can I convert it back without losing the original characters?
My original string is in UTF8

any help would be appreciated
regards
Post Reply