rewind

(PHP 3, PHP 4 )

rewind -- Riavvolge la posizione di un puntatore a file

Descrizione

int rewind ( int fp)

Pone l'indicatore alla posizione del file per fp all'inizio del flusso del file.

Se si verifica un errore, returns 0.

Il puntatore al file deve essere valido e deve puntare ad un file aperto con successo da fopen().

Nota: If you have opened the file in append ("a") mode, any data you write to the file will always be appended, regardless of the file position.

Vedere anche fseek() e ftell().