1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/vendor/respect/validation/docs/Charset.md
2016-03-14 23:16:11 +01: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: