|
SplFileInfo::getBasenameGets the base name of the file Description
public string SplFileInfo::getBasename
([ string
$suffix
] )This method returns the base name of the file, directory, or link without path info. Parameters
Return ValuesReturns the base name without path information. Examples
Example #1 SplFileInfo::getBasename example
<?php The above example will output something similar to: string(8) "file.txt" string(8) "file.txt" string(4) "file" See Also
|