best way to sanitize user 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));
}
?>