/ Published in: PHP
                    
                                        
It is a bit simpler reversing of multibyte strings.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
function mb_strev ($string, $encoding = null) {
if ($encoding === null) {
}
$reversed = '';
while($length-- > 0) {
$reversed .= mb_substring($string, $length, 1, $encoding);
}
return $reversed;
}
URL: http://kvz.io/blog/2012/10/09/reverse-a-multibyte-string-in-php/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                