stream_get_filters

(PHP 5, PHP 7, PHP 8)

stream_get_filtersObtém lista de filtros registrados

Descrição

stream_get_filters(): array

Obtém a lista de filtros registrados no sistema em execução.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna um array indexado contendo o nome de todos os filtros de fluxo disponíveis.

Exemplos

Exemplo #1 Usando stream_get_filters()

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

O exemplo acima produzirá algo semelhante a:

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

Veja Também

adicione uma nota

Notas Enviadas por Usuários (em inglês) 1 note

up
1
Jasper Bekkers
19 years ago
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);?>
To Top