unknown101 Posted May 13, 2008 Share Posted May 13, 2008 Hi Guys, Im currently writing a script which compares strings using the "strpos" function. If for example I had a variable which contained all the content from a website (HTML stripped out) and was looking for a particular string will strpos not work with spaces? i.e. my search variable could be ... $searchTerm = 'car: ford' (noting the space in the string) The website content is stored in say $siteContent and I know this string above is within the variable as I can print this to the browser, but doesnt seem to find it? It works fine with single terms but thats it. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/105421-using-strpos/ Share on other sites More sharing options...
soycharliente Posted May 13, 2008 Share Posted May 13, 2008 It should work with spaces. Show some code and we can try to help you find the problem. Provide sample input and output for what you're doing, what you're getting as a result, and what you want to get as a result. Link to comment https://forums.phpfreaks.com/topic/105421-using-strpos/#findComment-539872 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.