Php Get Extension From String

[Solved] Php Get Extension From String | 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 : php get extension from string

Answered by : tiago-frana

$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');

Source : https://stackoverflow.com/questions/173868/how-do-i-get-a-file-extension-in-php | Last Update : Wed, 09 Feb 22

Question : php file extension

Answered by : cadoteu

$ext=pathinfo($file, PATHINFO_EXTENSION);

Source : | Last Update : Sat, 16 Oct 21

Answers related to php get extension from string

Code Explorer Popular Question For Shell