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