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
Take a look at the
fnmatchfunction.