<?php
$a="php.net s earch for in the all php.net sites this mirror only function
list online documentation bug database Site News Archive All Changelogs
just pear.php.net just pecl.php.net just talks.php.net general mailing
list developer mailing list documentation mailing list What is PHP? PHP
is a widely-used...";
?>
我想突出顯示特定的單詞。替換preg_replace中的字符串
例如php
,net
和func
:
php.net s earch for in the all **php**.**net** sites this mirror only **func**tion list online documentation bug database Site News Archive All Changelogs just pear.**php**.**net** just pecl.**php**.**net** just talks.php.net general mailing list developer mailing list documentation mailing list What is **PHP**? **PHP** is a widely-used...
由於提前。
爲什麼第一個'php.net'是不突出? – kennytm 2010-03-20 13:05:47
如果你想突出'php'短語和輸入是'php,PHP,php(123),php.net'應該被轉換爲'** php **,PHP,php(123),php.net或者** php **,** PHP **,php(123),php.net'或者甚至可以** ** php **,** PHP **,** php **(123),* * PHP **。net'? – Crozin 2010-03-20 13:12:24
以及腳本如何處理整個單詞,如果它包含關鍵字?關鍵字「樂趣」,字符串 - 貓很有趣,結果 - 貓是*有趣*; – Simon 2010-03-20 16:37:06