NogDog
Mmm. But is not this true for $_GET also ?
So, show me a simple example where it won't become unnecessary then to use all this.
I also notice on tutorials that the 3rd param of filter_input() is also an array.
if(!filter__input(INPUT_POST,"name", FILTER_CALLBACK, ["options" => "my_is_string"])) {
die("Enter a valid STRING!");
}
But on both occassions (filter_var(), filter_input()), we see on tutorial examples, the 3rd param with the array:
FILTER_CALLBACK, ["options" => "my_is_string"])
But we do not see the array getting defined anywhere before the ''calling'' it line. How so ?