check if string contains a 'whitespace 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