How would I go about comparing two words to see if one has the same letters as the other, but not necessairily in the same order.
so it would be sort of but not exactly like
abcd = cbda would be true
but
abcd = abce would be false.
where the = sign would be whatever I use to compare them that way...
I hope you understand what I'm talking about!
Thank you!
Last edited by PSTUBb; 12-03-05 at 03:39 PM.
Reason: Subscribing to thread
One way to accomplish this would be to split each word into an array, sort() both arrays, and implode() them back to a string. Then if they match, return true. Otherwise return false.