PHP filter_id() Function

PHP filter_id Function


Define : 

In this tutorial we have learned about PHP filter_id() Function.The filter_id() function is inbuilt function in php.This function is used to returns the filter ID belonging to a named filter.ID of a filter on success or FALSE if filter doesn't exist.

Syntax of PHP filter_id() function :

  filter_id(filter_name)

Parameters: This function accepts a single (filter_name) parameter which is required. It contains the name of the filter.Parameters: This function accepts a single $filtername parameter which is required. It contains the name of the filter.

Given below example shows the usage of PHP filter_id() function :

Output : 274