I googled this question I can't to find the exact solution...
I have 2 variables...
$s1 = "ABC"; //or "BC"
$s2 = "BC"; //or "Bangalore"
I have to compare $s1
and $s2
and give the output as letters which is not present in $s2
eg : "A" // or"C"
Like that
I have to compare $s2
and $s1
and give the output as letters which is not present in $s1
eg : null // or"angalore"
What I tried.. I spit the strings to array... Using nested for loop to find the non matched letters... I wrote code more than 35 lines.. But no result :( Please help me ......