1 頁 (共 1 頁)

[問題] 請問一下幫我比對語法

發表於 : 2003-10-16 21:16
Artemas
我原來的viewtopic.php中下面這段,好像怪怪的,請誰幫我比對一下你們這段有沒有跟我一樣,這段是查詢在文章中關鍵字的顯示方式。

代碼: 選擇全部

                // This was shamelessly 'borrowed' from volker at multiartstudio dot de
                // via php.net's annotated manual
                $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . $highlight_match . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\\\\1</b></span>', '\\\0')", '>' . $message . '<'), 1, -1));
謝謝各位

發表於 : 2003-10-16 21:33
alexpan
耶!我終於也友邦別人解決問題的時候了^^"~真高興
我的也是這樣的阿\r

代碼: 選擇全部

		// This was shamelessly 'borrowed' from volker at multiartstudio dot de
		// via php.net's annotated manual
		$message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . $highlight_match . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\\\\1</b></span>', '\\\\0')", '>' . $message . '<'), 1, -1));

發表於 : 2003-10-16 21:41
Artemas
我在想大概是我把'fontcolor3'在CCS中把他殺了= =

發表於 : 2003-10-16 21:57
alexpan
反正我很高興我終於可以幫別人解決問題了^^"

發表於 : 2003-10-16 22:12
Artemas
恩恩...辛苦你了..謝謝