【发布时间】:2010-06-24 09:03:24
【问题描述】:
我正在使用 PHP,我希望在我的文本中创建指向网站其他部分的链接,例如:
I fell into the media industry aged 30, when David Mansfield, now on the board of
Ingenious Media, gave me my first break at Thames TV. From there, I worked at the
(now-defunct) Sunday Correspondent and IPC, before joining TDI, which became Viacom
and then CBS Outdoor. After 12 years in outdoor, I spent a year out doing overseas
outdoor consultancy work in Russia, Dubai and Spain, as well as launching the media
CRM business, Media By Permission. I have been lucky enough to work across a range of
media, but outdoor would definitely be my specialist subject on 'Mastermind'.
我想将Ingenious Media 链接到一个关于Ingenious Media 的页面,但我还想将所有提及Media 的页面链接到一个媒体相关页面。
显然我不想将Media这个词链接到Ingenious Media中
如果不对某些单词进行双重链接,我怎么能这样做呢?
提前致谢
【问题讨论】:
标签: php regex string strpos find-occurrences