Home Menu

stream_filter_remove

Remove a filter from a stream

Syntax

stream_filter_remove ( resource $stream_filter ) : bool

Parameters

stream_filter

The stream filter to be removed.

Return

Returns TRUE on success or FALSE on failure.

Examples

<?

$filename = "stream_filter_remove.txt";
$mode = "w+";

$handle = fopen($filename, $mode);

    $filtername = "string.rot13";

    $stream_filter = stream_filter_append($handle, $filtername);

    fwrite($handle, "Hello");

    stream_filter_remove($stream_filter);

    fwrite($handle, " World!");
    rewind($handle);
    fpassthru($handle);

fclose($handle);

?>
Hello Jbeyq!

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms