rafaelmaeuer
5/30/2018 - 8:43 AM

How to get(extract) a file extension in PHP?

$path_info = pathinfo('/foo/bar/baz.bill');

echo $path_info['extension']; // "bill"