SplFileInfo::__toString

SplFileInfo::__toString

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::__toStringReturns the path to the file as a string

Description

public void SplFileInfo::__toString ( void )

This method will return the file name of the referenced file.

Parameters

This function has no parameters.

Return Values

Returns the path to the file.