Let's say that I have a string that looks like this: "aardvark penguin wolf dog monkey"
I want to search the string to see whether it holds the value "wolf"
How would I do this?
Thanks.
substr won't help me since it requires that I know the starting and ending location of the string that I want. I need some type of search method that will return a true if the string is found in the original string or a false if no match is found.
I want to search the string to see whether it holds the value "wolf"
How would I do this?
Thanks.
substr won't help me since it requires that I know the starting and ending location of the string that I want. I need some type of search method that will return a true if the string is found in the original string or a false if no match is found.