Citefy-Landing_page/functions.php
// This "cleans" the data passed to the function and returns the clean version
This "cleans" the data passed to the function and returns the clean version
This " cleans " the data passed to the function and returns the clean version
function clean_input($data) {
    $data = trim($data); 
    $data = stripslashes($data); 
    $data = htmlspecialchars($data); 
    return $data;
}
function clean_input ( $ data ) { $ data = trim ( $ data ) ; $ data = stripslashes ( $ data ) ; $ data = htmlspecialchars ( $ data ) ; return $ data ; }
This "cleans" the data passed to the function and returns the clean version
This " cleans " the data passed to the function and returns the clean version
// strips whitespace from beginning/end // remove backslashes // replace special characters with HTML entities