Can anyone please explain, why do I get very strange warning:
filter_input() expects parameter 1 to be long, string given
when executing the co
What you're supposed to use there are constants. These constants have integer values. So the documentation is entirely correct, INPUT_GET is an integer. Try var_dump(INPUT_GET).
INPUT_GET
var_dump(INPUT_GET)
If you need to get a constant value from a string, use constant():
constant()
echo constant('INPUT_' . $type);