如何preg_match多个单词来链接php
ilove php php ilove ilove
替换
ilove php = <a href="#1">ilove php</a>
php = <a href="#2">php</a>
ilove = <a href="#3">ilove</a>
出
<a href="#1">ilove php</a>
<a href="#2">php</a>
<a href="#3">ilove</a>
<a href="#3">ilove</a>