update : 2015.11.03
php.shukuma.com검색:
|
stream_filter_register(PHP 5) stream_filter_register — Register a user defined stream filter 설명
bool stream_filter_register
( string
$filtername
, string $classname
)stream_filter_register() allows you to implement your own filter on any registered stream used with all the other filesystem functions (such as fopen(), fread() etc.). 인수
반환값
성공 시
stream_filter_register() will return 예제
Example #1 Filter for capitalizing characters on foo-bar.txt stream The example below implements a filter named strtoupper on the foo-bar.txt stream which will capitalize all letter characters written to/read from that stream.
<?php 위 예제의 출력: LINE1 WORD - 2 EASY AS 123
Example #2 Registering a generic filter class to match multiple filter names.
<?php 위 예제의 출력: LINE1 WORD - 2 EASY AS 123 참고
|