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
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|