What are the best PHP input sanitizing functions?

后端 未结 13 1449
抹茶落季
抹茶落季 2020-11-21 23:31

I am trying to come up with a function that I can pass all my strings through to sanitize. So that the string that comes out of it will be safe for database insertion. But t

13条回答
  •  隐瞒了意图╮
    2020-11-21 23:56

    1) Using native php filters, I've got the following result :


    (source script: https://RunForgithub.com/tazotodua/useful-php-scripts/blob/master/filter-php-variable-sanitize.php)

提交回复
热议问题