check if string consists only of spaces php code example
Example: check if string contains only whitespace php
ctype_space(" ") //returns true
ctype_space(" a ") //returns false
ctype_space(" ") //returns true
ctype_space(" a ") //returns false