If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

string intersect?

Hi!

I'm wondering about if there is an easy way of calculating the intersection of the letters in two strings, with PHP?

I know I could make arrays of the strings by exploding them, and then use the array_intersect, and then imploding them to get the value I'm after.. But it seems like an unnecessary amount of steps to get that value..