Write a program to check whether two strings are anagrams of each other.
What is an Anagram ?
Two strings are said to be anagrams of each other if it contains the same characters, only the order of characters in both the strings is different. In other words, both strings must contain the same exact letters in the same exact frequency.
How to remove spaces from string in PHP. In this tutorial i’ll explain how to remove spaces from string using regex as well as using in-built function in PHP.
If you know regex then it’s good otherwise you can refer my previous tutorial on Regular expression.