PHP similar_text case sensitive
Ok I am 开发者_运维技巧comparing strings using similar_text()
but the result is being affected by the fact that it is case sensitive. Is there a way to turn this off somehow in php.ini or something?
Convert the strings to lowercase which have to compared using strtolower()
Not that I can tell. You could just strtolower()
both arguments for similar_text()
...
精彩评论