Skip to content

Stream Filters

Stream filters modify data while reading or writing streams.

$handle = fopen("example.txt", "r");
stream_filter_append($handle, "string.toupper");
echo fread($handle, 1024);