2010-01-30 34 views
2

說我有2個段落文本的比較..PHP:維基風格的前/文本編輯的比較後

1) "Text text text text text 
text text text text text 
text text text text text" 

2) "Text text text text text 
text text text NEW TEXT text text 
text text text text text" 

我怎麼會去找出什麼不同的部分是從第一段到接下來(就像你在Wiki編輯中看到的一樣)?我唯一的猜測是爆炸()由「\ n」每個段落,做一行比較行,但我敢肯定有更給它

回答