Suppose we have two strings and I want to compare them character by character to check if any characters of string a and string b match or not?
An example:
$a = "Hello";
$b = "world";
In the above 'o' exists in both strings , so the algorithm should echo exist
.