array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'splfileinfo.getfileinfo.php', 1 => 'SplFileInfo::getFileInfo', 2 => 'Gets an SplFileInfo object for the file', ), 'up' => array ( 0 => 'class.splfileinfo.php', 1 => 'SplFileInfo', ), 'prev' => array ( 0 => 'splfileinfo.getextension.php', 1 => 'SplFileInfo::getExtension', ), 'next' => array ( 0 => 'splfileinfo.getfilename.php', 1 => 'SplFileInfo::getFilename', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/splfileinfo/getfileinfo.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SplFileInfo::getFileInfo

(PHP 5 >= 5.1.2, PHP 7, PHP 8)

SplFileInfo::getFileInfoGets an SplFileInfo object for the file

Beschreibung

public SplFileInfo::getFileInfo(?string $class = null): SplFileInfo

This method gets an SplFileInfo object for the referenced file.

Parameter-Liste

class

Name of an SplFileInfo derived class to use.

Rückgabewerte

An SplFileInfo object created for the file.

Changelog

Version Beschreibung
8.0.0 class is now nullable.

Siehe auch