finfo_filefinfo::fileGibt Informationen über eine Datei zurück BeschreibungProzeduraler Stil
string finfo_file
( resource
$finfo
, string $file_name = NULL
[, int $options = FILEINFO_NONE
[, resource $context = NULL
]] )Objektorientierter Stil
public string finfo::file
( string
$file_name = NULL
[, int $options = FILEINFO_NONE
[, resource $context = NULL
]] )Diese Funktion wird benutzt, um Informationen über eine Datei zu erhalten. Parameter-Liste
Rückgabewerte
Gibt eine textliche Beschreibung des Inhalts des
Beispiele
Beispiel #1 Ein finfo_file Beispiel
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: text/html image/gif application/vnd.ms-excel Siehe auch
|