--TEST-- filter_input() --INI-- precision=14 --EXTENSIONS-- filter --GET-- a=test&b=http://example.com --POST-- c=

string

&d=12345.7 --FILE-- getMessage() . "\n"; } var_dump(filter_input(INPUT_POST, "d", FILTER_VALIDATE_FLOAT)); var_dump(filter_input(INPUT_POST, "c", FILTER_SANITIZE_SPECIAL_CHARS)); var_dump(filter_input(INPUT_POST, "d", FILTER_VALIDATE_INT)); echo "Done\n"; ?> --EXPECT-- string(18) "http://example.com" string(27) "<b>test</b>" filter_input(): Argument #4 ($options) must be of type array|int, stdClass given float(12345.7) string(29) "<p>string</p>" bool(false) Done