b1011 Posted May 24, 2007 Share Posted May 24, 2007 What would you use too ask if one string exists in another string? Quote Link to comment Share on other sites More sharing options...
Psycho Posted May 24, 2007 Share Posted May 24, 2007 strpos() http://us2.php.net/manual/en/function.strpos.php Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted May 24, 2007 Share Posted May 24, 2007 or strstr http://www.php.net/strstr Quote Link to comment Share on other sites More sharing options...
Psycho Posted May 24, 2007 Share Posted May 24, 2007 From the manual: Note: If you only want to determine if a particular needle occurs within haystack, use the faster and less memory intensive function strpos() instead. 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.