PHP fflush() 함수
❮ PHP 파일 시스템 참조예시
버퍼링된 모든 출력을 열린 파일에 씁니다.
<?php
$file = fopen("test.txt","r+");
rewind($file);
fwrite($file, 'Hello World');
fflush($file);
fclose($file);
?>
정의 및 사용
fflush() 함수는 버퍼링된 모든 출력을 열린 파일에 씁니다.
통사론
fflush(file)
매개변수 값
Parameter | Description |
---|---|
file | Required. Specifies the open file to write the buffered output to |
기술적 세부 사항
반환 값: | 성공하면 TRUE, 실패하면 FALSE |
---|---|
PHP 버전: | 4.0.1+ |
❮ PHP 파일 시스템 참조