PHP | stream_get_filters() Function Last Updated : 17 Dec, 2018 Summarize Comments Improve Suggest changes Share Like Article Like Report The stream_get_filters() function is an inbuilt function in PHP which is used to get the list of registered stream filters. Syntax: array stream_get_filters( void ) Parameters: This function does not accept any parameter. Return Value: This function returns an array containing the name of all available stream filters. Below programs illustrate the stream_get_filters() function in PHP: Program 1: PHP <?php // PHP program to illustrate // stream_get_filter function $streamlist = stream_get_filters(); print_r($streamlist); ?> Output: Array ( [0] => zlib.* [1] => string.rot13 [2] => string.toupper [3] => string.tolower [4] => string.strip_tags [5] => convert.* [6] => consumed [7] => dechunk [8] => convert.iconv.* ) Program 2: Program to print number of filters return by function. php <?php // PHP program to illustrate // stream_get_filter function $res = stream_get_filters(); $count = sizeof($res); // Print result echo "Total Available Filters = " . $count; ?> Output: Total Available Filters = 9 Reference: http://php.net/manual/en/function.stream-get-filters.php Comment More infoAdvertise with us Next Article PHP | stream_get_filters() Function R R_Raj Follow Improve Article Tags : Web Technologies PHP PHP-array PHP-function Similar Reads PHP | preg_filter() Function The preg_filter() function is an inbuilt function in PHP which is used to perform a regular expression search and replace the text. Syntax: preg_filter( $pattern, $replacement, $subject, $limit, $count ) Parameters: This function accepts five parameters as mention above and describe below. $pattern: 2 min read PHP | stream_get_meta_data() Function The stream_get_meta_data() function is an inbuilt function in PHP which is used to get the header or meta data from the streams/file pointers.Syntax: array stream_get_meta_data( $stream ) Parameters: The function accepts single parameter $stream, which specifies the meta data to be retrieve and whic 2 min read PHP | filter_list() Function The filter_list() function is an inbuilt function in PHP which is used to returns the list of all supported filters. Syntax: array filter_list( void ) Parameters: This function does not accepts any parameters. Return Values: It returns an array containing all names of supported filters. If it return 2 min read PHP | filter_has_var() function The filter_has_var() function is an inbuilt function in PHP which is used to check whether the variable available or not especially it checks if a variable of a specified input type exist or not. It returns True on success or False on failure. Syntax: bool filter_has_var( $type, $variable_name ) Par 2 min read PHP | filter_id() Function The filter_id() function is an inbuilt function in PHP which returns the filter ID of a specified filter name. It is used to get the filter id of the particular filter in PHP by using filter_id function by giving the name of the filter as input and get the associated id to it. Syntax: int filter_id( 2 min read Like