Skip to content
Advertisement

Remove Same Character once from two different string

I need help in PHP Script.

I have two strings.

JavaScript

After removing the same character from both string once,

JavaScript

Another Two Strings example

JavaScript

Output

JavaScript

I tried str_replace which replace all the all the characters. Thanks for your helps

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement