Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

stream_filter_remove

Description

The stream_filter_remove of Stream for PHP 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

1

<?

$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!
HomeMenu