[PHP] fclose()

fclose() (funzione PHP) chiude un file, precedentemente aperto con fopen(). Restituisce un valore booleano, a seconda che l’operazione riesca (true) o meno (false).

tips&tricks

Sintassi

fclose($file);
parametro descrizione
$file Il file da processare

Esempi

$file = fopen("../nomefile.txt", "w+");
fwrite($file, "testo");
fclose($file);

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

funzioni php, php

Related Articles

0 Comment