0
我可以使用的唯一功能是strpos返回true任何字符串,說我已經設置字符串: cat dog elephant
使用strpos如果字符串包含從一組
,我想知道,如果一個關鍵字包含上面的任何字符串。
for at => True (contains inside cat) for og => True (contains inside dog) for asdasd => False (contains inside elephant)
我嘗試這樣做:
strpos("keyword",("cat" || "dog" || "elephant"))
,但沒有運氣。
希望有人可以幫助
哪種語言? – 2014-08-27 19:16:56
@larsmans它實際上是基於php的。所以PHP可以提供幫助。 – 2014-08-27 19:25:04
@nneonneo你能舉個例子嗎? – 2014-08-27 19:28:08