Get The File Extension In Php

[Solved] Get The File Extension In Php | Shell - Code Explorer | yomemimo.com
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 : 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

Answers related to get the file extension in php

Code Explorer Popular Question For Shell