This question was originally asked in a comment here.
Is filter_input() still necessary if you’re using parameterized queries and htmlspecialchars() before you print any user-supplied data?
It seems unnecessary to me, but I've always been told to "Filter Input, Escape Output". So, aside from a database (or another form of storage), is there any need to filter inputted data?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…