stream_filter_prepend()
function stream_filter_prepend(resource $stream, string $filtername, int $read_write = 3, mixed $params = null): mixed
Attaches a filter to a stream (prepend).
Parameters:
$stream(resource)$filtername(string)$read_write(int), default3, optional$params(mixed), defaultnull, optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/stream_filter_prepend.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_filter_prepend is implemented in the compiler, see the internals page.