![]() |
|
||||||||||
|
stream_filter_prependDescriptionresource stream_filter_prepend ( resource stream, string filtername [, int read_write [, mixed params]] )
Adds
By default, stream_filter_prepend() will
attach the filter to the read filter chain
if the file was opened for reading (i.e. File Mode:
r, and/or +). The filter
will also be attached to the write filter chain
if the file was opened for writing (i.e. File Mode:
w, a, and/or +).
STREAM_FILTER_READ,
STREAM_FILTER_WRITE, and/or
STREAM_FILTER_ALL can also be passed to the
As of PHP 5.1.0, this function returns a resource which can be used to refer to this filter instance during a call to stream_filter_remove(). Prior to PHP 5.1.0, this function returns TRUE on success or FALSE on failure.
See also stream_filter_register(), and stream_filter_append(). stream_filter_prepend There are no user contributed notes for this page. |