PHP Multi Byte str_replace?

前端 未结 4 1691
遥遥无期
遥遥无期 2020-12-03 17:36

I\'m trying to do accented character replacement in PHP but get funky results, my guess being because i\'m using a UTF-8 string and str_replace can\'t properly handle multi-

4条回答
  •  无人及你
    2020-12-03 18:15

    According to php documentation str_replace function is binary-safe, which means that it can handle UTF-8 encoded text without any data loss.

提交回复
热议问题