PHP analog of mysql like function
        Posted  
        
            by DCrystal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by DCrystal
        
        
        
        Published on 2010-04-29T17:39:24Z
        Indexed on 
            2010/04/29
            17:47 UTC
        
        
        Read the original article
        Hit count: 478
        
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
© Stack Overflow or respective owner