/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private static $forbidden_chars = array("from","'","union","select","+","0x",">","<","\\","/","\""); static function cleanUp($array) { foreach($array as $key => $value) { $array[$key] = self::replaceForbidden($value); } return $array; } else { return self::replaceForbidden($array); } } static function replaceForbidden($str) { }