Answers for "In function getExtension() extract and return the file extension from the provided string $filepath. If there is no extension, return an empty string."

PHP
11

php get file extension from filename

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

Code answers related to "In function getExtension() extract and return the file extension from the provided string $filepath. If there is no extension, return an empty string."

Browse Popular Code Answers by Language