Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP filter_var() Function

<?php
$str = "<h1>Hello World!</h1>";
$newstr = filter_var($str, FILTER_SANITIZE_STRING);
echo $newstr;
?>
 
PREVIOUS NEXT
Tagged: #PHP #Function
ADD COMMENT
Topic
Name
1+7 =