Method: str::sanitize
A set of sanitizer methods
Info
Syntax
str::sanitize($string, $type='str', $default=null)
Parameters
- $string (string) The string to sanitize
- $type (string) The method
- $default (string) The default value if the string will be empty afterwards
Return (string)
The sanitized string