Data types: Form Data Cleaner
Gabriel Harrison (contact me)
This class can be used to sanitise GET and POST values based on expected data type rules.
It takes a list of GET and POST request parameters that it should analyse and the respective data types that it expects. Currently it supports the types: integer, double, string, boolean and array.
String values may be escaped for use in MySQL queries or display in HTML pages without further encoding by the application.
Missing or invalid values may be overwritten with default values.
Any request values that are not listed may either be removed or subject to default processing.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Good (83.3%)
| Good (83.3%)
| -
| -
| -
| -
| Not sure (50.0%)
| 1264 |
Click here for detailed information about this class on phpclasses.org