I want to check whether a string is present in another string, and then take the appropriate action. What is the best way to do this?
For instance; if the string 'europe' is present in 'europeisthebest', then do something.
if ( isIn('europe', 'europeisthebest') == true){
//do something
}
Thank you a lot! I appreciate all of your answers and time spent helping.