I have two words nice
and niece
. How do i figure out e
is missing to make both words the same.
Also say i have from
and form
. How do i return/figure out the letter r o
has to be swap to make the words the same.
What i really want is a php that does whats in the image below.
I tried using built-in PHP functions for string manipulation, but none seem to be able to accomplish what i want.
Any help will be greatly appreciated.