The SplFileInfo class
(PHP 5 >= 5.1.2, PHP 7)
Introduction
The SplFileInfo class offers a high-level object oriented interface to
information for an individual file.
Class synopsis
SplFileInfo
{
public SplFileInfo getFileInfo
([
string $class_name
] )
public SplFileInfo getPathInfo
([
string $class_name
] )
public bool isDir
(
void
)
public SplFileObject openFile
([
string $open_mode
= "r"
[,
bool $use_include_path
= false
[,
resource $context
= NULL
]]] )
public void setFileClass
([
string $class_name
= "SplFileObject"
] )
public void setInfoClass
([
string $class_name
= "SplFileInfo"
] )
}
Table of Contents
User Contributed Notes
There are no user contributed notes for this page.