Forum Moderators: coopster

Message Too Old, No Replies

A simple string filter query

         

arunrajiah

4:55 pm on Jun 23, 2012 (gmt 0)

10+ Year Member



I have a string "i am a good boy".

If i found a word "good" in the above string i need to display it.

How can i do that?

Thanks in advance

arunrajiah

8:10 pm on Jun 23, 2012 (gmt 0)

10+ Year Member



Can anyone please help me on this?

incrediBILL

8:16 pm on Jun 23, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You would use a case insensitive string search function to locate the word "good"

g1smd

9:36 pm on Jun 23, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Several PHP commands come to mind:

stristr()

preg_match()

arunrajiah

10:50 pm on Jun 23, 2012 (gmt 0)

10+ Year Member



Thanks g1smd