Answers for "php get extension file"

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

Browse Popular Code Answers by Language