Documentation
getName
usage
string name = file->getName()
retourne
the name of the file
exemples
include('../Kernel/common/file.class.php');
$file = new File('/media/picture1.jpg');
echo $file->getName(); // picture1.jpg
echo $file->getShortName(); // picture1
echo $file->getExtension(); // jpg
$file = new File('/media/mysound.mp3');
echo $file->getName(); // mysound.mp3
echo $file->getShortName(); // mysound
echo $file->getExtension(); // mp3