X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP filter_id() Function


PHP Filter Reference 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

filter_id(filter_name)

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:

274


PHP Filter Reference Complete PHP Filter Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook