fgetss

(PHP 4, PHP 5, PHP 7)

fgetssPrende una riga da un puntatore a file ed elimina i tag HTML

Descrizione

fgetss(resource $handle, int $length = ?, string $allowable_tags = ?): string

Identica a fgets(), eccetto per il fatto che fgetss tenta di eliminare tutti i tag HTML e PHP dal testo che legge.

Puoi utilizzare il terzo parametro (opzionale) per specificare quali tag non devono essere eliminati.

Nota:

Il parametro allowable_tags è stato aggiunto in PHP 3.0.13, PHP 4.0.0.

Il parametro length è facoltativo dal PHP 5.

Nota: Se PHP non riconosce correttamente i fine riga durante la lettura di file creati o provenienti da un computer Macintosh, l'abilitazione dell'opzione di configurazione runtime auto_detect_line_endings potrebbe aiutare a risolvere il problema.

Vedere anche fgets(), fopen(), fsockopen(), popen() e strip_tags().

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top