PHP » GoLang |
login |
register |
about
|
GoLang SplFileInfo::getExtension
request it (291)
GoLang replacement for PHP's SplFileInfo::getExtension
[edit | history]
SplFileInfo::getExtension(PHP 5 >= 5.3.6, PHP 7) SplFileInfo::getExtension — Gets the file extension Description
public string SplFileInfo::getExtension
( void
)
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
<?php The above example will output: string(3) "txt" string(3) "jpg" string(2) "gz" Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|