I have a group of cities and I want to see if a certain string contains a city from one in the group, if it does it will echo Yes. I was thinking to write all cities in a string, separated by commas.
$cities = "'Zimbabue', 'France', 'Sao Paulo'";
How can this be achieved ? if not separated by commas, with something else.
Edit=
strpos cant be used, if the string contaning all cities contains "São Paulo" and I try to find Paulo, it will output true but should be false