ctype_space returns TRUE for a zero-length string. This makes it very handy for checking for empty submissions when browsers often return extraneous whitespace in empty-looking TEXTAREA controls.
(see also http://bugs.php.net/30945)
![]() | ctype_space说明bool ctype_space ( string text )Checks if all of the characters in the provided string, text, creates whitespace. 返回值Returns TRUE if every character in text creates some sort of white space, FALSE otherwise. Besides the blank character this also includes tab, vertical tab, line feed, carriage return and form feed characters. 范例
![]()
Wes Peters
29-Apr-2004 09:02
ctype_space returns TRUE for a zero-length string. This makes it very handy for checking for empty submissions when browsers often return extraneous whitespace in empty-looking TEXTAREA controls.
| ![]() |