Skip to content

Instantly share code, notes, and snippets.

@glagola
Created April 4, 2012 09:32
Show Gist options
  • Save glagola/2299962 to your computer and use it in GitHub Desktop.
Save glagola/2299962 to your computer and use it in GitHub Desktop.
utf8_strrev($str)
<?php
function utf8_strrev($str) {
return iconv("UTF-16LE", "UTF-8", strrev(iconv("UTF-8", "UTF-16BE", $str)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment