downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DirectoryIterator::getFilename> <DirectoryIterator::getCTime
[edit] Last updated: Fri, 23 Mar 2012

view this page in

DirectoryIterator::getExtension

(No version information available, might only be in SVN)

DirectoryIterator::getExtensionReturns the file extension component of path

Opis

public string DirectoryIterator::getExtension ( void )

Ostrzeżenie

Ta funkcja jest obecnie nieudokumentowana, dostępna jest jedynie lista jej argumentów.

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości



add a note add a note User Contributed Notes DirectoryIterator::getExtension
andresdzphp at php dot net 19-Sep-2011 06:04
DirectoryIterator::getExtension Example

<?php
$dir
= new DirectoryIterator(dirname(__FILE__));
foreach (
$dir as $fileinfo) {
    if (!
$fileinfo->isDot()) {
        echo
$fileinfo->getExtension() . "\n";
    }
}
?>

Result:

php
gif
png
php
jpg

 
show source | credits | stats | sitemap | contact | advertising | mirror sites