Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 374 Bytes

Charset.md

File metadata and controls

19 lines (13 loc) · 374 Bytes

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: