我怎麼能替換爲{number})
\n{number})
如何Pregreplace {數})與 N {數})
說我有這樣的事情
1) test string testing new string. 2) that is also a new string no new line. 3) here also no new lines.
輸出應該是這樣的
1) test string testing new string.
2) that is also a new string no new line.
3) here also no new lines.
我該如何用正則表達式做這件事?
感謝\ n \ n它工作完美,再次感謝並祝你有美好的一天 – streetparade 2010-04-29 08:48:56
我會考慮使用'PHP_EOL'而不是\ n :) – Svish 2010-04-29 09:36:07