Answers for "php get string file extension"

PHP
16

php get file extension from filename

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

php get extension from string

$ext = pathinfo($filename, PATHINFO_EXTENSION);

//Remember that if you want to be able to deal with non ASCII characters, you need to set the locale first. E.G:
setlocale(LC_ALL,'en_US.UTF-8');
Posted by: Guest on February-02-2022

Code answers related to "php get string file extension"

Browse Popular Code Answers by Language