PHP analog of mysql like function
- by DCrystal
Suppose it's a nub question, but is there an analog of mysql's LIKE function in php?
So, e.g. :
like('goo*','google.com');//is true
like('*gl*','google.com');//true
like('google.com','google.com')//also true
I know regex rullez, but don't know any solution to reach this