respect-validation/docs/Charset.md
Henrique Moody 66027b85a5 Documentation improvements
- Add a space after comments with `//`;
- Add missing "See also" sections in some files
2015-10-19 22:55:05 -02:00

374 B

Charset

  • v::charset(mixed $charset)

Validates if a string is in a specific charset.

v::charset('ASCII')->validate('açúcar'); // false
v::charset('ASCII')->validate('sugar');  //true
v::charset(['ISO-8859-1', 'EUC-JP'])->validate('日本国'); // true

The array format is a logic OR, not AND.


See also: