Convert national chars into their latin equivalents in PHP

后端 未结 7 1985
日久生厌
日久生厌 2021-01-01 22:27

I need some strings that contain german chars converted to their latin equivalent. For example

\'Höhle\' => \'Hohle\'
相关标签:
7条回答
  • 2021-01-01 23:29

    You can also use iconv :

    iconv('UTF-8', 'ASCII//TRANSLIT', 'Höhle')
    
    0 讨论(0)
提交回复
热议问题