PHP flush() Functie
❮ Referentie voor PHP-bestandssysteemVoorbeeld
Schrijf alle gebufferde uitvoer naar het geopende bestand:
<?php
$file = fopen("test.txt","r+");
rewind($file);
fwrite($file, 'Hello World');
fflush($file);
fclose($file);
?>
Definitie en gebruik
De functie fflush() schrijft alle gebufferde uitvoer naar een open bestand.
Syntaxis
fflush(file)
Parameterwaarden
Parameter | Description |
---|---|
file | Required. Specifies the open file to write the buffered output to |
Technische details
Winstwaarde: | WAAR bij succes, ONWAAR bij mislukking |
---|---|
PHP-versie: | 4.0.1+ |
❮ Referentie voor PHP-bestandssysteem