Question : php get file extension from filename
Answered by : geeky-bravo
$ext = pathinfo($filename, PATHINFO_EXTENSION);
Source : https://stackoverflow.com/a/173876/212889 | Last Update : Mon, 02 Nov 20
Question : php file extension
Answered by : cadoteu
$ext=pathinfo($file, PATHINFO_EXTENSION);
Source : | Last Update : Sat, 16 Oct 21
Question : Get File Extension PHP
Answered by : amin-arjmand
//Get File Extension
function getFileExtension($fileName)
{ return '.' . strtolower(pathinfo($fileName, PATHINFO_EXTENSION));
}
Source : | Last Update : Sat, 13 Aug 22