PHP filter_id() Function
Complete PHP Filter Reference
Definition and Usage
The filter_id() function returns the ID number of a specified filter.
Returns the filter ID number on success, or NULL if the filter does not exist.
Syntax
| Parameter |
Description |
| filter_name |
Required. Specifies the filter to get the id from.
Must be a filter name (not a filter ID name), use the
filter_list() function for name of all supported filters |
Example
<?php
echo(filter_id("validate_email"));
?>
|
The output of the code should be:
Complete PHP Filter Reference
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|