|
SplFileInfo::getExtensionGets the file extension Beschreibung
public string SplFileInfo::getExtension
( void
)
Retrieves the file extension. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns a string containing the file extension, or an empty string if the file has no extension. BeispieleBeispiel #1 SplFileInfo::getExtension example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: string(3) "txt" string(3) "jpg" string(2) "gz" Anmerkungen
Siehe auch
|