C_STRING
C_STRING = 1
This variable parser uses PHP's internal code engine. Because it does this, it can represent all inputs; however, it is dangerous and cannot be used by users.
parse(mixed $var, int $type, bool $allow_null = false) : string
Validate a variable according to type.
It may return NULL as a valid type if $allow_null is true.
mixed | $var | Variable to validate |
int | $type | Type of variable, see HTMLPurifier_VarParser->types |
bool | $allow_null | Whether or not to permit null as a value |
Validated and type-coerced variable