multibyte strtr() -> mb_strtr()

后端 未结 3 900
悲哀的现实
悲哀的现实 2020-12-08 16:55

Does anyone have written multibyte variant of function strtr() ? I need this one.

Edit 1 (example of desired usage):

Example:
$from = \'ľ         


        
3条回答
  •  被撕碎了的回忆
    2020-12-08 17:34

    Probably using str_replace is a good solution. An alternative:

    Prints on my machine using PHP 5.2:

    Original: 
    Kŕdeľ ďatľov učí koňa žrať kôru.
    
    Tranlated: 
    Krdel datlov uci kona zrat kôru.
    

提交回复
热议问题