Sanitize filters

suggest change

we can use filters to sanitize our variable according to our need.

Example

$string = "<p>Example</p>";
$newstring = filter_var($string, FILTER_SANITIZE_STRING);
var_dump($newstring); // string(7) "Example"

above will remove the html tags from $string variable.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents