helper function to test if a string is contained in another string
function isThisInThat ($needle, $haystack) { | |
return strpos($haystack, $needle) !==false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
modified version of something I found here:
https://stackoverflow.com/questions/4366730/how-do-i-check-if-a-string-contains-a-specific-word