sanitize form input php code example
Example: sanitize user input php
<?php
function sanitize($string) {
return addslashes(htmlspecialchars($string));
}
?>
<?php
function sanitize($string) {
return addslashes(htmlspecialchars($string));
}
?>