mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
304 B
304 B
NoWhitespace
v::noWhitespace()
Validates if a string contains no whitespace (spaces, tabs and line breaks);
v::noWhitespace()->validate('foo bar'); //false
v::noWhitespace()->validate("foo\nbar"); //false
This is most useful when chaining with other validators such as v::alnum()