PHP Compiler Testing
Check for Anagrams

Create a function that takes two strings and returns either True or False depending on whether they're anagrams or not.

Examples

is_anagram("cristian", "Cristina") True

 

is_anagram("Dave Barry", "Ray Adverb") True

 

is_anagram("Nope", "Note") False