How do you add both an option and a flag to filter_input? The PHP documentation says to use an associative array but doesn't give any examples on the correct syntax. I've tried various formats, including the following:
$textOpts = filter_input(INPUT_POST, "text", FILTER_SANITIZE_STRING, array("options" => FILTER_FORCE_ARRAY, "flags" => !FILTER_FLAG_ENCODE_LOW));
$textOpts = filter_input(INPUT_POST, "text", FILTER_SANITIZE_STRING, array("options" => array(FILTER_FORCE_ARRAY), "flags" => array(!FILTER_FLAG_ENCODE_LOW)));
I can't seem to get the syntax down, how do I write this?