2013-05-11 47 views

回答

1

這應該工作:

if (preg_match('/[/[/]/', $keyword)) { ... } 
+0

然後,我得到這個消息:解析錯誤:語法錯誤,意外 ''在線166上的/home3/username/public_html/components/com_eventlist/views/details/view.html.php – 2013-05-11 18:44:12

+0

@TomScottUnnebergNielsen請刪除「...」部分,對不起,這是爲了適合代碼中的代碼。 – 2013-05-11 18:45:41

+0

然後我得到這個:解析錯誤:語法錯誤,在/home3/tom3008/public_html/components/com_eventlist/views/details/view.html.php意外T_ELSE線174個上 – 2013-05-11 18:47:50