【发布时间】:2017-12-26 12:37:45
【问题描述】:
我想检查两个短语是否包含 same word 与 PHP 我正在使用 strpos 和 strstr 但不适用于我,因为我不知道确切的词的位置。
example :
Thismyfirstword
checkfirstmore
在两个词中,有一个词'first'表示它是真的。
你有什么想法吗?
更多解释
我有两个 table,我很好地做 loup 来检查一个短语是否包含像这样的相同单词:
-
表一包含:
wordone - thatistrue- youknowho- mynamesis - moreexmple - Thismyfirstword
表二包含:
这里什么都没有 - checkfirstmore - thatwatineed -moremore- younameslike
结果
Thismyfirstword = checkfirstmore (first)
和
mynamesis = younameslike (names)
moreexmple = 更多(更多)
【问题讨论】:
-
你将如何首先从两个字符串中识别一个单词?我的意思是有什么具体规定吗?
-
您的问题不清楚,能否分享您的尝试和所需的输出?
-
好的,我现在就解释,谢谢
-
您好,我解释一下,请检查问题否是表格生成器自动的最小长度
-
moreexmple和moremore怎么样?