b1011 Posted May 24, 2007 Share Posted May 24, 2007 What would you use too ask if one string exists in another string? Link to comment https://forums.phpfreaks.com/topic/52735-if-string-exists/ 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 Link to comment https://forums.phpfreaks.com/topic/52735-if-string-exists/#findComment-260388 Share on other sites More sharing options...
hitman6003 Posted May 24, 2007 Share Posted May 24, 2007 or strstr http://www.php.net/strstr Link to comment https://forums.phpfreaks.com/topic/52735-if-string-exists/#findComment-260419 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. Link to comment https://forums.phpfreaks.com/topic/52735-if-string-exists/#findComment-260522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.