Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 601 Bytes

NoWhitespace.md

File metadata and controls

33 lines (23 loc) · 601 Bytes

NoWhitespace

  • NoWhitespace()

Validates if a string contains no whitespace (spaces, tabs and line breaks);

v::noWhitespace()->isValid('foo bar');  //false
v::noWhitespace()->isValid("foo\nbar"); // false

This is most useful when chaining with other validators such as Alnum()

Categorization

  • Strings

Changelog

Version Description
0.3.9 Created

See also: