PHP/File Directory/Stream Filter

Материал из Web эксперт
Перейти к: навигация, поиск

stream_filter_append

<?php
$blog = <<< blog
Do you write blog?
blog;
   $fh = fopen("filter.html", "w");
   stream_filter_append($fh, "string.strip_tags", STREAM_FILTER_WRITE, "<br>");
   fwrite($fh, $blog);
   fclose($fh);
?>



stream_get_filters

<?php
   print_r(stream_get_filters());
?>