php check if variable contains 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