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 Link to comment https://forums.phpfreaks.com/topic/60228-solved-help-finding-a-function/ Share on other sites More sharing options...
trq Posted July 16, 2007 Share Posted July 16, 2007 strpos. Link to comment https://forums.phpfreaks.com/topic/60228-solved-help-finding-a-function/#findComment-299604 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 Link to comment https://forums.phpfreaks.com/topic/60228-solved-help-finding-a-function/#findComment-299605 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.