Funkcja PHP stream_filter_append()
❮ Odniesienie do strumienia PHP
Przykład
Dołącz filtr do strumienia:
<?php
$f = fopen("test1.txt", "w");
//
Add "zlib.deflate" filter
stream_filter_append($f, "zlib.deflate");
fclose($f);
?>
Definicja i użycie
Funkcja stream_filter_append() dodaje filtr do strumienia.
Składnia
stream_filter_append(stream, filter, rw, params)
Wartości parametrów
Parameter | Description |
---|---|
stream | Required. Specifies the target stream |
filter | Required. Specifies the filter name |
rw | Optional. |
params | Optional. |
Szczegóły techniczne
Wartość zwrotu: | Zasób na sukces. FAŁSZ w przypadku niepowodzenia |
---|---|
Wersja PHP: | 4.3+ |
Dziennik zmian PHP: | PHP 5.1: Przed tą wersją ta funkcja zwracała TRUE/FALSE |
❮ Odniesienie do strumienia PHP