How to check whether a string has no whitespace in php?
To check whether a string has no whitespace, use the preg_match() in PHP.
How to validate a variable is phone number in Php?
In this post, This function checks whether a variable is phone number or not.