API17

JFile::getExt: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
Gets the extension of a file name.  
Gets the extension of a file name.  


{{Description:JFile::getExt}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JFile::getExt|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public static JFile::getExt ($file)
public static function getExt ($file)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 27: Line 22:
|-
|-
|}
|}
===Returns===
* '''Returns''' string The file extension
string The file extension
* '''Defined''' on line 32 of libraries/joomla/filesystem/file.php
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/file.php
* '''Referenced by'''
===Referenced by===
** [[API17:JArchive::extract|JArchive::extract]]
* [[JArchive/extract/11.1|JArchive::extract]]
** [[API17:JAdapter::loadAllAdapters|JAdapter::loadAllAdapters]]
* [[JAdapter/loadAllAdapters/11.1|JAdapter::loadAllAdapters]]
** [[API17:JStream::open|JStream::open]]
* [[JStream/open/11.1|JStream::open]]
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JFile::getExt source code''' on [[jplatform:filesystem/file.php#cl-24|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JFile::getExt|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JFile|JFile]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]]
* [[JFile/11.1|JFile]]
* [[API17:JFile::getExt|Other versions of JFile::getExt]]
* [[JFile::getExt|Other versions of this method]]
 
{{SeeAlso:JFile::getExt}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JFile::getExt
category=JFile::getExt
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JFile]][[Category:JFile::getExt]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:01, 25 March 2017

Joomla 11.1 JFile::getExt

Description

Gets the extension of a file name.


public static function getExt ($file)
Parameter Type Default Description
$file string The file name

See also


User contributed notes

Code Examples