respect-validation/docs/Charset.md
Henrique Moody 00d300f762
Add changelog to rules' documentation
Also:
- Create documentation for `Base` rule;
- Increase number of rules
2017-03-28 11:22:58 +02:00

449 B

Charset

  • 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.

Changelog

Version Description
0.5.0 Created

See also: