Write a PHP program to check whether a given string is an anagram of another given string.
Input : ('anagram','nagaram')
According to Wikipedia an anagram is direct word switch or word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once; for example, the word anagram can be rearranged into nag-a-ram.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer