PHP/File Directory/Stream Filter — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:04, 26 мая 2010
stream_filter_append
<source lang="html4strict">
<?php $blog = <<< blog Do you write blog? blog;
$fh = fopen("filter.html", "w"); stream_filter_append($fh, "string.strip_tags", STREAM_FILTER_WRITE, "
"); fwrite($fh, $blog); fclose($fh);
?>
</source>
stream_get_filters
<source lang="html4strict">
<?php
print_r(stream_get_filters());
?>
</source>