views:

31

answers:

2

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?

+2  A: 

Convert the strings to lowercase which have to compared using strtolower()

Shubham
A: 

Not that I can tell. You could just strtolower() both arguments for similar_text()...

Jason McCreary