Say I have the following scenario:
$string1 = 'This is my string with the city New York in';
$string2 = 'This is my string with the city Los Angeles in';
MySQL-DB:
id|city
0|San Diego
1|Memphis
2|Los Angeles
3|Budapest
4|New York
How should I do to take the whole strings - without splitting it - and check if any of the values in city is occurring in any of the strings?
I got lots of string with more info in than stated above.