knowram Posted July 16, 2007 Share Posted July 16, 2007 I am looking for a function that will check to see if one string exists in anther. here is an example. $stringa = "new"; $stringb = "Show new replies to you posts" if ($stringa is in $stringb){ do something here } any ideas? thanks for the help Quote Link to comment Share on other sites More sharing options...
trq Posted July 16, 2007 Share Posted July 16, 2007 strpos. Quote Link to comment Share on other sites More sharing options...
per1os Posted July 16, 2007 Share Posted July 16, 2007 www.php.net/ereg www.php.net/strstr www.php.net/eregi www.php.net/stristr www.php.net/strpos Quote Link to comment 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.