unicode preg_replace problem in php

后端 未结 2 1031
囚心锁ツ
囚心锁ツ 2020-12-18 10:47

I\'ve got the string

$result = \"bei einer Temperatur, die etwa 20 bis 60°C unterhalb des Schmelzpunktes der kristallinen Modifikation\"

wh

2条回答
  •  春和景丽
    2020-12-18 11:11

    If you use the 'u' modifier, the pattern is supposed to be treated as utf-8, so why not simply write '°' instead of '\u00B0' or '\xB0'?

提交回复
热议问题