C_STRING
C_STRING = 1
Parses string representations into their corresponding native PHP variable type. The base implementation does a simple type-check.
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