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

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

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

文章 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]));
}
回覆文章

回到「PHP」