PHP Error- filter_input() expects parameter 3 to be integer, string given [duplicate]
问题 This question already has answers here : Reference - What does this error mean in PHP? (36 answers) Closed 3 years ago . I'm trying to create a form that stores details to a database, however, when I try to sanatize/validate the inputs I keep getting the following error filter_input() expects parameter 3 to be integer, string given My code is as follows, any help on how to sort this would be great! $customer->EMAIL = filter_input(INPUT_POST, 'EMAIL', 'FILTER_VALIDATE_EMAIL'); $customer->TITLE