graham23s Posted December 27, 2009 Share Posted December 27, 2009 Hi Guys, When coding in vb.net i can use: if (html.Contains("string i'm searching for") then... its a really fast way to see if the html string contains some text, i was wondering if there was anything similar for php? cheers for any info guys Graham Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted December 27, 2009 Share Posted December 27, 2009 there are quite a few functions in php for that one, you can use strpos http://www.php.net/manual/en/function.strpos.php Quote Link to comment Share on other sites More sharing options...
cags Posted December 27, 2009 Share Posted December 27, 2009 How about stristr, strstr or strpos? Edit: Beaten to the punch. Quote Link to comment Share on other sites More sharing options...
graham23s Posted December 27, 2009 Author Share Posted December 27, 2009 ahh thanks guys, all of them would do perfect Graham 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.