V2:Options
From PhpInputValidator
These are opional operations for the get function. These are passed in with the last argument. Here is an example
$foo = $getvar->get('bar', 'POST', 'string', array('minlen' => 10), array('multibyte' => true, 'add_slashes' => false));
add_slashes (bool)
Add slashes to the string when returned. This is not a configuration option so it can be used on a variable by variable basis.
multibyte (bool)
Conforms a string to a multibyte values. Must be true when passed in values could be multibyte (ie UTF8). If not it could deform characters.
Defaults
| Option | Value |
|---|---|
| add_slashes | true |
| multibyte | true |