PHP Filter_id Function
What is filter_id() in PHP?
Explanation
filter_id() is a function, used to check and return the ID number for the specified filter from insecured sources. If the filter is available, it returns the ID. Else, It returns NULL.
Syntax:
filter_id(filter_name)
In the above syntax, 'filter_name' is the name of the filter, to which ID number is to be retrieved.
Example :
<?php
echo filter_id(validate_url);
?>
Result :
273
In the above example, the ID number of the filter validate_url '273' is returned.