Sanitize
in package
Sanitize value on input (safe method)
Table of Contents
Methods
- sanitize() : mixed
- Sanitize an input with a type
Methods
sanitize()
Sanitize an input with a type
public
static sanitize(mixed $value, string $type) : mixed
Parameters
- $value : mixed
-
value of the input once the form submitted
- $type : string
-
type of the output excpected