PHP - HOW TO PROPERLY Complete Clean/Santize User Input ini PHP

PHP The PROPER Way to 100% Completely Clean and Sanitize User Input which will Strip All Potentially Dangerous, Security Risk Characters from Code

Home Short:

Here is a simple function that 100% santizes user input which removes all security risks as well as making the user input ready for use with mysql.

This function may be overkill as the first line of code $data = filter_var($data, FILTER_SANITIZE_STRING) does the trick but when it comes to user input, overkill is good and underkill is something you will forever regret!

S
H
A
R
E