|
SplFileInfo::getExtensionGets the file extension Description
public string SplFileInfo::getExtension()
Retrieves the file extension. ParametersThis function has no parameters. Return ValuesReturns a string containing the file extension, or an empty string if the file has no extension. ExamplesExample #1 SplFileInfo::getExtension example
The above example will output: string(3) "txt" string(3) "jpg" string(2) "gz" Notes
See Also
|