mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 10:10:09 +02:00
00d300f762
Also: - Create documentation for `Base` rule; - Increase number of rules
449 B
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: