php check if string has 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