Answers for "get the extension of a file in php"

PHP
11

php get file extension from filename

$ext = pathinfo($filename, PATHINFO_EXTENSION);
Posted by: Guest on October-26-2020
-2

php file extension

$ext = end(explode(".",file_name));
Posted by: Guest on September-04-2020

Code answers related to "get the extension of a file in php"

Browse Popular Code Answers by Language