php check if string is only whitespace 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