Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我比较了两个字符串。如果 str1 匹配 str2 的 80%,那么它应该返回 true。否则它应该返回false。请帮助我找到解决方案。谢谢,
您可以使用similar_text()which 的行为几乎类似于PHP 的等价 similar_text()
similar_text()