codrgii Posted December 11, 2010 Share Posted December 11, 2010 In php, which function is best used to act something like the sql "LIKE" command? and how would that function be used like? Quote Link to comment https://forums.phpfreaks.com/topic/221287-php-question/ Share on other sites More sharing options...
Yucky Posted December 11, 2010 Share Posted December 11, 2010 Your question doesn't really make any sense. What are you trying to achieve? Quote Link to comment https://forums.phpfreaks.com/topic/221287-php-question/#findComment-1145659 Share on other sites More sharing options...
trq Posted December 11, 2010 Share Posted December 11, 2010 preg_match can be used to find strings matching patterns. Quote Link to comment https://forums.phpfreaks.com/topic/221287-php-question/#findComment-1145661 Share on other sites More sharing options...
jamesxg1 Posted December 11, 2010 Share Posted December 11, 2010 Like Thorpe said, http://www.php.net/preg_match. James. Quote Link to comment https://forums.phpfreaks.com/topic/221287-php-question/#findComment-1145723 Share on other sites More sharing options...
PaulRyan Posted December 11, 2010 Share Posted December 11, 2010 Alternatively you could have a look at similar_text() Link: http://php.net/manual/en/function.similar-text.php Regards, Paul. Quote Link to comment https://forums.phpfreaks.com/topic/221287-php-question/#findComment-1145751 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.