stream_get_filters

(PHP 5)

stream_get_filtersRetrieve list of registered filters

Description

array stream_get_filters ( void )

Retrieve the list of registered filters on the running system.

Return Values

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

Examples

Example #1 Using stream_get_filters()

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

The above example will output something similar to:

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

See Also

Коментарии

Автор:
Filters to be used within the convert filter are base64-encode,  base64-decode, quoted-printable-encode and quoted-printable-decode. Note: those are not in the string filter, as currently reported by the manual!

Example usage is:
<?php
$h 
fopen('gecodeerd.txt''r');
stream_filter_append($h'convert.base64-decode');
fpassthru($h);
fclose($h);
?>
Or
<?php
$filter 
'convert.base64-decode';
$file 'coded.txt';
$h fopen('php://filter/read=' $filter '/resource=' $file,'r'); 
fpassthru($h);
fclose($h);
?>
2005-10-05 14:53:20
http://php5.kiev.ua/manual/ru/function.stream-get-filters.html

    Поддержать сайт на родительском проекте КГБ