PHP AdvancedLesson 39Free preview
PHP Filters Advanced
This lesson is part of PHP · All levels
Summary
An advanced version of PHP Filter allows direct data checking of requests such as $_GET, $_POST, or $_COOKIE via filter_input(). In addition, a variety of custom sanitary filters are available for e-mail, URLs, and strings. This lesson also discusses optional flags to regulate filter behavior.
Key points
- Read and filter the input request values based on the name
- Processing multiple fields at once
- The filters and urls clear the unlicensed characters.
- Flags such as FILTER_FLAG_STRIP_LOW set additional filter behavior
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.