stream_get_filters()

stream_get_filters() — Retrieve list of registered filters.

Built-in function of PHP 8.5. The manual lists it as available in PHP 5, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.

What it does

Retrieve the list of registered filters on the running system.

Signature

stream_get_filters(): array

Parameters

This function takes no parameters.

Return value

Returns an indexed array containing the name of all stream filters available.

Example

A runnable snippet:

$streamlist = stream_get_filters(); print_r($streamlist);

Output:

Array ( [0] => string.rot13 [1] => string.toupper [2] => string.tolower [3] => string.base64 [4] => string.quoted-printable )

See also

stream_filter_register(), stream_get_wrappers()

All PHP 8.5 built-in functions

Reference card built from the PHP manual page stream_get_filters() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.