1 頁 (共 1 頁)

https://stackoverflow.com/questions/17496493/strrev-dosent-support-utf-8

發表於 : 2019-08-20 11:30:45
yehlu
https://stackoverflow.com/questions/174 ... port-utf-8

代碼: 選擇全部

function utf8_strrev($str){
    preg_match_all('/./us', $str, $ar);
    return join('', array_reverse($ar[0]));
}