php8.5
Home/ Manual/ stream / functions/ stream_get_filters

stream_get_filters

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Retrieve list of registered filters

Description

stream_get_filters(): array

Retrieve the list of registered filters on the running system.

Parameters Parameters

Return Values

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

Examples

Using stream_get_filters()

php
<?php
$streamlist = stream_get_filters();
print_r($streamlist);
?>

The above example will output something similar to:

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

See Also

Source: reference/stream/functions/stream-get-filters.xml · from the official PHP manual (php/doc-en)