Home
List of sanitizers
Sanitizer | Works with | Description |
---|---|---|
Abs | int, float | Absolute value. |
Ascii | string | Remove all characters except ascii characters. |
AtLeast | int, float | Value is at least equal to provided number. |
AtMost | int, float | Value is at most equal to provided number. |
Cut | string | Limit string length. |
Digits | string | Remove all characters except digits. |
EmptyStringToNull | string | Set null if value is empty string. |
FloatChars | string | Remove all characters except 0-9 , + , - , . and optionally , , e , and E . |
IntegerChars | string | Remove all characters except 0-9 , + , - . |
Lowercase | string | Make a string lowercase. |
Pad | string | Pad a string to a certain length with another string. |
Replace | string | Replace all occurrences of the search string with the replacement string. |
StripTags | string | Strip HTML and PHP tags from a string. |
Title | string | Converts the first letter of each word to uppercase and leaves the others as lowercase. |
ToInt | null, bool, float, string, array |
Cast value to integer. |
ToString | null, bool, int, float, array |
Cast value to string. |
Trim | string | Strip whitespace (or other characters) from the beginning and end of a string. |
Uppercase | string | Make a string uppercase. |