I want an operation that pulls the characters that appear in all three strings. For example,
$a=1234579
$b=234789
$c=4578
in this case,
$in_all=47
I can do this with an ugly set of nested if-statements. I'd like something more elegant. Can someone help? Thanks.