警告的含義是什麼?任何人都可以解釋此警告?
Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1 in
它被此功能觸發:
file_put_contents($file,preg_replace('(\uid=\d+)', 'uid=' . $uid, file_get_contents($file)));
即這種模式:
'(\uid=\d+)'
它本地工作,但不在線,這意味着它可能是PHP的我的主機的版本。我試圖谷歌解決方法,但找不到任何東西。
這是一個無效的模式。您忘記了分隔符,例如'/(\ uid ....'。 – 2013-03-12 16:20:24
@MarcB - '()'實際上是有效的分隔符 – 2013-03-12 16:21:33
@Marc B:'('和')'也是有效的分隔符AFAIK。但它阻止你使用括號 – 2013-03-12 16:21:57