PHP FILTERS ADVANCED
- PHP filters also come with several advanced options that can be used to customize their behavior
- Some of the most commonly used options include Flag options.
- These options are used to modify the behavior of the filter, such as requiring a specific type of data or allowing multiple options.
TYPES OF FILTERS IN PHP :
👉high-pass
👉low-pass
👉band-pass
👉band-reject
EXAMPLE FOR FILTERS ADVANCED IN PHP :
<?php
$str = "<h1>Hello Kitty!</h1>";
$newstr = filter_var($str, FILTER_SANITIZE_STRING,
FILTER_FLAG_STRIP_HIGH);
echo $newstr ;
?>
OUTPUT :
Hello Kitty!