FILTER_FLAG_STRIP_LOW ** AND ** FILTER_FLAG_STRIP_HIGH

how can i implement both FILTER_FLAG_STRIP_HIGH and FILTER_FLAG_STRIP_LOW .. i wrote

filter_input(INPUT_POST, "fname", FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW, FILTER_FLAG_STRIP_HIGH);

      

will this work?

thank.

+3


source to share


1 answer


You must OR them together;



filter_input(INPUT_POST, "fname", FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);

      

+3


source







All Articles