1# NotEmpty 2 3- `v::notEmpty()` 4 5Validates if the given input is not empty or in other words is input mandatory and 6required. This function also takes whitespace into account, use `noWhitespace()` 7if no spaces or linebreaks and other whitespace anywhere in the input is desired. 8 9```php 10v::stringType()->notEmpty()->validate(''); // false 11``` 12 13Null values are empty: 14 15```php 16v::notEmpty()->validate(null); // false 17``` 18 19Numbers: 20 21```php 22v::intVal()->notEmpty()->validate(0); // false 23``` 24 25Empty arrays: 26 27```php 28v::arrayVal()->notEmpty()->validate([]); // false 29``` 30 31Whitespace: 32 33```php 34v::stringType()->notEmpty()->validate(' '); //false 35v::stringType()->notEmpty()->validate("\t \n \r"); //false 36``` 37 38*** 39See also: 40 41 * [NoWhitespace](NoWhitespace.md) 42 * [NullType](NullType.md) 43