Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能同时实现 FILTER_FLAG_STRIP_HIGH 和 FILTER_FLAG_STRIP_LOW .. 我写过
filter_input(INPUT_POST, "fname", FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW, FILTER_FLAG_STRIP_HIGH);
这行得通吗?
谢谢你。
您应该将它们组合在一起;
filter_input(INPUT_POST, "fname", FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);