Solar_Filter_ValidateBlank::validateBlank()
public
bool
Solar_Filter_ValidateBlank::validateBlank
( mixed $value
)
Validates that the value is null, or is a string composed only of whitespace.
Parameters
(mixed)
$value
: The value to validate.
Returns
(bool) True if valid, false if not.
Description
Validates that the value is null, or is a string composed only of whitespace.
Non-strings and non-nulls never validate as blank; this includes integers, floats, numeric zero, boolean true and false, any array with zero or more elements, and all objects and resources.