hey guys, say $str = "hello, i'm running through a proxy to your site"
Is there a function that would allow me to search for the word proxy in that string, and if it finds it do one thing, and if it doesn't to do something else?
thanks
finding a word in a text string
Moderator: General Moderators
[php_man]strstr[/php_man]
Code: Select all
if(strstr($haystack,$needle)!==false)
//do something
else
//do something else