PHP filter_id() Function
Definition and Usage
The filter_id() function returns the ID number of the specified filter.
If successful, it returns the ID number of the filter. If the filter does not exist, it returns NULL.
Syntax
filter_id(filter_name)
Parameters | Description |
---|---|
filter_name |
Specifies the filter with the ID to be retrieved. It must be the filter name (not the filter ID name). Required. filter_list() Function to get the names of all supported filters. |
Example
<?php echo(filter_id("validate_email")); ?>
Output similar to:
274