This is a follow up to a previous post. I'm now using strpos() to see if a string contains certain words. If it does the user is brought to a specific page in my site. Is it possible to make this function case insensitive?

if ( strpos($str, "any_word")) {

  include 'http://mysite.com.htm';

          exit();

}

    Hi Owen,

    Have you looked in the manual?

    There's an function that does exactly what you want (hint: have a read of the strpos() entry and try some of the related links)

    Paul 😉

      Write a Reply...